StampCat, StampBrowse.xsl

Discuss the powerful Explorer Templates used in the CAT programs
User avatar
Alex Ivanovich
Posts: 307
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: StampCat, StampBrowse.xsl

Post by Alex Ivanovich » Sun Apr 24, 2016 6:07 pm

ERROR: Could not apply stylesheet: StampBrowse.xsl
I/O
warning :
failed to load external entity "C:\Users\Public\Documents\StampCAT\Explorer Templates\kommuneicons\flags.xml"

disable this code if you have error

Code: Select all

<!-- Begin insert code 
                  <xsl:variable name="_country">
                    <xsl:value-of select="country"/>
                     </xsl:variable>
                     <xsl:variable name="_flag">
                       <xsl:value-of select="document('kommuneicons/flags.xml')/data/country[@name=$_country]/ISO_3166-1_alpha-2"/>
                     </xsl:variable>
                  <xsl:text> </xsl:text>
                  <xsl:choose>
                    <xsl:when test="$_flag!='' ">
                      <img src="kommuneicons/{$_flag}.gif" border="0"/>   
                    </xsl:when>
                    <xsl:otherwise>
                      <img src="kommuneicons/nomatch.gif" border="0"/>   
                    </xsl:otherwise>
                  </xsl:choose>   -->

Johnnyt
Posts: 19
Joined: Sat Aug 22, 2015 7:53 pm

Re: StampCat, StampBrowse.xsl

Post by Johnnyt » Sun Apr 24, 2016 6:25 pm

Hi!

I have no problems. Of course I have the accompanying explorer templates and kommuneicons.
My Stamp Browse pane looks like this:
StampBrowse Pane01.jpg
StampBrowse Pane01.jpg (405.27 KiB) Viewed 973 times
-------------
StampCAT
CATraxx
BookCAT
CATVids

User avatar
Alex Ivanovich
Posts: 307
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: StampCat, StampBrowse.xsl

Post by Alex Ivanovich » Sun Apr 24, 2016 6:33 pm

Please send your database to reproduce the data of your screenshots

Johnnyt
Posts: 19
Joined: Sat Aug 22, 2015 7:53 pm

Re: StampCat, StampBrowse.xsl

Post by Johnnyt » Sun Apr 24, 2016 7:30 pm

Ok!
Let us keep it simple.
Backup your sample database!

In the sample database registration window, tick off for watermark
Sample registration window.jpg
Sample registration window.jpg (128 KiB) Viewed 967 times
Then copy this code to your StampBrowse.xsl in your sample database:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<?data type="record"?>
<?data table="stamp"?>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>

<xsl:include href="Common.xsl"/>

<xsl:param name="doctitle">
  <xsl:value-of select="data/record/country"/>
  <xsl:if test="data/record/catalogno!=''">
    <xsl:text> (</xsl:text><xsl:value-of select="data/record/catalogno"/><xsl:text>)</xsl:text>
  </xsl:if>
</xsl:param>

<xsl:template match="/">
  <html>
  <head>
  <title><xsl:value-of select="$doctitle"/></title>  
  <link rel="stylesheet" type="text/css" href="style.css"/> 
  </head>
  <body>
    <xsl:apply-templates select="data/record"/>
  </body>  
  </html>
</xsl:template>

<xsl:template match="record">
  <table class="record_pane_table_outer" cellpadding="1" cellspacing="0">
    <tr>      
      <td valign="top" width="*">
        <table cellpadding="1" cellspacing="0" width="100%">          
          <tr>
            <td valign="top" width="*">
              <table class="record_pane_table" cellspacing="0" cellpadding="1">
                <tr>
                  <td class="record_pane_table_group_padding" colspan="0"></td>
                </tr>
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/country/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Country={country}@xslparam:doctitle={/data/fld/country/@name}: {country}" target="_BLANK">
                      <xsl:value-of select="country"/>
                    </a>
                  </td>
                </tr>
                <xsl:if test="catalog!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/catalog/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Catalog={catalog}@xslparam:doctitle={/data/fld/catalog/@name}: {catalog}" target="_BLANK"> 
                      <xsl:value-of select="catalog"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="catalogno!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/catalogno/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:value-of select="catalogno"/>
                  </td>
                </tr> 
                </xsl:if>              
                <xsl:if test="facevalue!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/facevalue/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:value-of select="facevalue"/>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="issued!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/issued/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Issued={issued/@year}@xslparam:doctitle={/data/fld/issued/@name}: {issued/@year}" target="_BLANK">
                      <xsl:value-of select="issued"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="design!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/design/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:value-of select="design"/>
                  </td>
                </tr>
                </xsl:if>
		<!-- Custom12 -->
                  <xsl:if test="custom12!='Nei'">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/custom12/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Custom12={custom12}@xslparam:doctitle={/data/fld/custom12/@name}: {custom12}" target="_BLANK"> 
                      <xsl:value-of select="custom12"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="custom20!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/custom20/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
			<a href="StampList.xsl?Custom20={custom20}@xslparam:doctitle={/data/fld/custom20/@name}: {custom20}" target="_BLANK">
                    <xsl:value-of select="custom20"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="topic!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/topic/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Topic={topic}@xslparam:doctitle={/data/fld/topic/@name}: {topic}" target="_BLANK"> 
                      <xsl:value-of select="topic"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="location!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/location/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Location={location}@xslparam:doctitle={/data/fld/location/@name}: {location}" target="_BLANK"> 
                      <xsl:value-of select="location"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="code!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/code/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Code={code}@xslparam:doctitle={/data/fld/code/@name}: {code}" target="_BLANK"> 
                      <xsl:value-of select="code"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="status!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/status/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Status={status}@xslparam:doctitle={/data/fld/status/@name}: {status}" target="_BLANK"> 
                      <xsl:value-of select="status"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>                                  
                <xsl:if test="dateacquired!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/dateacquired/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?DateAcquired={dateacquired/@unformatted}@xslparam:doctitle={/data/fld/dateacquired/@name}: {dateacquired}" target="_BLANK">
                      <xsl:value-of select="dateacquired"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/quantity/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:value-of select="quantity"/>
                  </td>
                </tr>
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/calcprice/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:value-of select="calcprice"/>
                  </td>
                </tr>
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/calcvalue/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:value-of select="calcvalue"/>
                  </td>
                </tr>
              </table>
            </td>
            <td width="6">
            </td>
            <td valign="top" width="*">
              <table cellpadding="1" cellspacing="1" width="100%" class="fieldtableprevpane">
                <tr> 
                  <td class="record_pane_table_group" colspan="2"><xsl:text>&#160;</xsl:text></td>
                </tr>                
                <tr>
                  <td class="record_pane_table_group_padding" colspan="2"></td>
                </tr>
                <xsl:if test="class!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/class/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Class={class}@xslparam:doctitle={/data/fld/class/@name}: {class}" target="_BLANK"> 
                      <xsl:value-of select="class"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="watermark!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/watermark/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?watermark={watermark}@xslparam:doctitle={/data/fld/watermark/@name}: {watermark}" target="_BLANK"> 
                      <xsl:value-of select="watermark"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="group!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/group/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Group={group}@xslparam:doctitle={/data/fld/group/@name}: {group}" target="_BLANK"> 
                      <xsl:value-of select="group"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="type!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/type/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Type={type}@xslparam:doctitle={/data/fld/type/@name}: {type}" target="_BLANK"> 
                      <xsl:value-of select="type"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="color!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/color/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Color={color}@xslparam:doctitle={/data/fld/color/@name}: {color}" target="_BLANK"> 
                      <xsl:value-of select="color"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="perforation_full!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:text>Perforation</xsl:text></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <xsl:call-template name="format-perforation"> 
                      <xsl:with-param name="perforation_horiz" select="perforation_horiz"/> 
                      <xsl:with-param name="perforation_vert" select="perforation_vert"/>
                      <xsl:with-param name="newwindow" select="'True'"/> 
                    </xsl:call-template> 
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="condition!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/condition/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Condition={condition}@xslparam:doctitle={/data/fld/condition/@name}: {condition}" target="_BLANK"> 
                      <xsl:value-of select="condition"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="hinged!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/hinged/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Hinged={hinged}@xslparam:doctitle={/data/fld/hinged/@name}: {hinged}" target="_BLANK"> 
                      <xsl:value-of select="hinged"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="category!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/category/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Category={category}@xslparam:doctitle={/data/fld/category/@name}: {category}" target="_BLANK"> 
                      <xsl:value-of select="category"/>
                    </a>
                  </td>
                </tr>
                </xsl:if>
                <xsl:if test="postmark!='' or postmarkcity!='' or postmarkdate!=''">
                <tr>
                  <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/postmark/@name"/></td>
                  <td class="record_pane_table_fieldvalue" width="100%">
                    <a href="StampList.xsl?Postmark={postmark}@xslparam:doctitle={/data/fld/postmark/@name}: {postmark}" target="_BLANK"> 
                      <xsl:value-of select="postmark"/>
                    </a>
                    <xsl:if test="postmarkcity!='' or postmarkdate!=''">
                      <xsl:text>, </xsl:text>
                      <a href="StampList.xsl?PostmarkCity={postmarkcity}@xslparam:doctitle={/data/fld/postmarkcity/@name}: {postmarkcity}" target="_BLANK">
                        <xsl:value-of select="postmarkcity"/>
                      </a>
                      <xsl:text>, </xsl:text>
                      <a href="StampList.xsl?PostmarkDate={postmarkdate/@unformatted}@xslparam:doctitle={/data/fld/postmarkdate/@name}: {postmarkdate}" target="_BLANK">
                        <xsl:value-of select="postmarkdate"/>
                      </a> 
                    </xsl:if>
                  </td>
                </tr>
                </xsl:if>                
                <xsl:if test="count(keywords/keyword)>0">                                                             
                <tr> 
                  <td class="record_pane_table_group" colspan="2"><xsl:value-of select="/data/fld/keyword/@name"/></td>
                </tr>
                <tr>
                  <td class="record_pane_able_group_padding" colspan="2"></td>
                </tr>
                <tr> 
                  <td class="record_pane_table_fieldvalue" colspan="2">
                    <xsl:call-template name="format-keywords">
                      <xsl:with-param name="keywords" select="keywords"/>
                      <xsl:with-param name="newline" select="'False'"/> 
                      <xsl:with-param name="newwindow" select="'True'"/>
                    </xsl:call-template>            
                  </td>
                </tr>             
                </xsl:if>
                <tr> 
                  <td class="record_pane_table_group" colspan="2"><xsl:value-of select="/data/fld/notes/@name"/></td>
                </tr>
                <tr>
                  <td class="record_pane_able_group_padding" colspan="2"></td>
                </tr>
                <tr> 
                  <td class="record_pane_table_fieldvalue" colspan="2">
                    <xsl:if test="notes!=''"> 
                      <xsl:call-template name="add-line-breaks">
                      <xsl:with-param name="string" select="notes"/> 
                      </xsl:call-template>
                      <br/>
                    </xsl:if>
                    <a href="CMD:EDITMEMO:Stamp,Notes,{stampid/@unformatted}"><img class="record_pane_edit_memo" src="EditMemo.gif"/></a>  
                  </td>
                </tr>
                <xsl:if test="count(filelinks/filelink) > 0">
                <tr> 
                  <td class="record_pane_table_group" colspan="2"><xsl:value-of select="/data/fld/filelinks/@name"/></td>
                </tr>
                <tr>
                  <td class="record_pane_able_group_padding" colspan="2"></td>
                </tr>                
                <tr>
                  <td class="record_pane_table_fieldvalue" colspan="2">
                    <xsl:call-template name="format-filelinks">
                      <xsl:with-param name="filelinks" select="filelinks"/> 
                    </xsl:call-template>
                  </td>
                </tr>
                </xsl:if>              
                <xsl:if test="count(weblinks/weblink) > 0">
                <tr> 
                  <td class="record_pane_table_group" colspan="2"><xsl:value-of select="/data/fld/weblinks/@name"/></td>
                </tr>
                <tr>
                  <td class="record_pane_able_group_padding" colspan="2"></td>
                </tr>                
                <tr>
                  <td class="record_pane_table_fieldvalue" colspan="2">
                    <xsl:call-template name="format-weblinks">
                      <xsl:with-param name="weblinks" select="weblinks"/> 
                    </xsl:call-template>
                  </td>
                </tr>
                </xsl:if>                                           
                <xsl:if test="count(stamplinks/stamplink)>0">
                <tr> 
                  <td class="record_pane_table_group" colspan="2"><xsl:value-of select="/data/fld/stamplinks/@name"/></td>
                </tr>
                <tr>
                  <td class="record_pane_able_group_padding" colspan="2"></td>
                </tr>                
                <tr>
                  <td class="record_pane_table_fieldvalue" colspan="2">
                    <xsl:for-each select="stamplinks/stamplink">
                      <a href="Stamp.xsl?ID={@stampid}" target="_BLANK">
                        <xsl:if test="type!=''">
                          <xsl:value-of select="type"/>
                          <xsl:text>: </xsl:text>
                        </xsl:if>
                        <xsl:value-of select="title"/>
                      </a>
                      <xsl:if test="position() < last()">
                        <br/>
                      </xsl:if >                 
                    </xsl:for-each>
                  </td>
                </tr>
                </xsl:if>                                                                      
              </table>
            </td>
          </tr>                    
        </table>        
      </td>
      <td width="6">
      </td>
      <td valign="top" width="*">     
        <xsl:if test="image1/filename!='' and image1/@virtual='No'">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},1"><img class="record_pane_image" src="{image1/filename}" width="400"/></a>
	    <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image1/notes"/>
            </xsl:call-template>  
            <BR/>           
 	</xsl:if>
        <xsl:if test="image2/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},2"><img class="record_pane_image" src="{image2/filename}" width="400"/></a> 
        </xsl:if>
        <xsl:if test="image3/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},3"><img class="record_pane_image" src="{image3/filename}" width="400"/></a> 
        </xsl:if>        
        <xsl:if test="image4/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},4"><img class="record_pane_image" src="{image4/filename}" width="400"/></a> 
        </xsl:if>        
        <xsl:if test="image5/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},5"><img class="record_pane_image" src="{image5/filename}" width="400"/></a> 
        </xsl:if>        
        <xsl:if test="image6/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},6"><img class="record_pane_image" src="{image6/filename}" width="400"/></a> 
        </xsl:if>        
        <xsl:if test="image7/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},7"><img class="record_pane_image" src="{image7/filename}" width="400"/></a> 
        </xsl:if>        
        <xsl:if test="image8/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},8"><img class="record_pane_image" src="{image8/filename}" width="400"/></a> 
        </xsl:if>        
        <xsl:if test="image9/filename!=''">
          <a href="CMD:VIEWIMAGE:Stamp,{@id},9"><img class="record_pane_image" src="{image9/filename}" width="400"/></a> 
        </xsl:if>                       
      </td>                  
    </tr>
  </table>  
</xsl:template>

</xsl:stylesheet>
I have inserted code for the watermark tick box and it appear like this:
Sample StampBrowse pane.jpg
Sample StampBrowse pane.jpg (64.35 KiB) Viewed 967 times
Then I ask for code to return the watermark control name "watermark", but only if watermark is ticked in the registration window.
If it is not ticked in the registration window, it should not appear at all, like this:
StampBrowse Pane02.jpg
StampBrowse Pane02.jpg (59.04 KiB) Viewed 967 times
-------------
StampCAT
CATraxx
BookCAT
CATVids

User avatar
DougWilliams
Site Admin
Posts: 254
Joined: Thu May 22, 2014 11:36 am
Location: Wisconsin, USA
Contact:

Re: StampCat, StampBrowse.xsl

Post by DougWilliams » Sun Apr 24, 2016 7:42 pm

Hi Johnnyt,

Looks to be a couple people working on this!
Something like this?
Attachments
Capture.JPG
Capture.JPG (25.82 KiB) Viewed 967 times
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

Johnnyt
Posts: 19
Joined: Sat Aug 22, 2015 7:53 pm

Re: StampCat, StampBrowse.xsl

Post by Johnnyt » Sun Apr 24, 2016 8:00 pm

I am grateful for help from both of you!

Yes, exactly like that, but only if field is ticked.
-------------
StampCAT
CATraxx
BookCAT
CATVids

User avatar
DougWilliams
Site Admin
Posts: 254
Joined: Thu May 22, 2014 11:36 am
Location: Wisconsin, USA
Contact:

Re: StampCat, StampBrowse.xsl

Post by DougWilliams » Sun Apr 24, 2016 8:08 pm

This is what I used.
{EDIT} I realized I copied from the wrong file. I've updated to the correct code.

Code: Select all

				<xsl:if test="custom32!=''"> 
				<TR CLASS="fieldrowprevpane">
					<TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom32/@name"/></TD>
					<TD CLASS="fieldvalueprevpane" WIDTH="100%">
					<A HREF="StampList.xsl?Custom32={custom32}@xslparam:doctitle={/data/fld/custom32/@name}: {custom32}" TARGET="_BLANK"> 
					<xsl:value-of select="custom32"/>
				</A>
					<xsl:if test="custom24/@bool='True'">
						<xsl:text> - </xsl:text>
						<xsl:value-of select="/data/fld/custom24/@name"/> 
					</xsl:if>
					</TD>
				</TR>
				</xsl:if>
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

Johnnyt
Posts: 19
Joined: Sat Aug 22, 2015 7:53 pm

Re: StampCat, StampBrowse.xsl

Post by Johnnyt » Sun Apr 24, 2016 9:20 pm

Thank you very much Doug! This is superb!
I was not able to figure out testing for this bool expression. I am an genuine novice with xml!
Just one more question. Will there be possible to HREF this field in StampBrowse?

Also thanks to Alex for your time, I appreciate it!

Johnny
-------------
StampCAT
CATraxx
BookCAT
CATVids

User avatar
DougWilliams
Site Admin
Posts: 254
Joined: Thu May 22, 2014 11:36 am
Location: Wisconsin, USA
Contact:

Re: StampCat, StampBrowse.xsl

Post by DougWilliams » Sun Apr 24, 2016 9:25 pm

You are welcome.

You can add the HREF but my testing indicates it won't work as the destination XSL (StampList) doesn't know about Custom32 or Custom 24. If you can add it to the destination XSL then you can.

While I'm no expert, trial and error and looking at what others have done helped me figure it out.

Keep at it and keep backups!!

Doug
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

Johnnyt
Posts: 19
Joined: Sat Aug 22, 2015 7:53 pm

Re: StampCat, StampBrowse.xsl

Post by Johnnyt » Sun Apr 24, 2016 9:37 pm

Ok, thank you for your feedback.
I will make an attempt later, in an couple of days.
I have to go to bed and get my beauty sleep, and to morrow I will be busy the hole evening.
I can not express how pleased I am with this software. It fullfill all my needs (and way more).
I am constantly growing with my Cat's (since years back) and can not think how it would be without them.

Happy cataloging to all of you fellows!
-------------
StampCAT
CATraxx
BookCAT
CATVids

Post Reply