Before the end of 2017 the board will be down for a brief period of time for an upgrade.
Past experience says less than 30 minutes but I can't predict the future.
Also, there is a high probability that the forum will move to a different host, but that will not happen in 2017.
Thanks,
Doug

StampCat, StampBrowse.xsl

Discuss the powerful Explorer Templates used in the CAT programs
Johnnyt
Posts: 17
Joined: Sat Aug 22, 2015 7:53 pm

StampCat, StampBrowse.xsl

Postby Johnnyt » Sun Apr 24, 2016 3:28 pm

I need some help!
Instead of "Yes" I want to display the control name for the tick box Custom24 only when ticked.
Is that possible?

<!-- Custom 32 or Custom 24-->
<xsl:if test="custom32!='' or custom24!='No'">
<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={custom11}@xslparam:doctitle={/data/fld/custom32/@name}: {custom32}" TARGET="_BLANK">
<xsl:value-of select="custom32"/>
</A>
<xsl:if test="custom24!='No'">
<xsl:text> - </xsl:text>
<A HREF="StampList.xsl?Custom24={custom24}@xslparam:doctitle={/data/fld/custom24/@name}: {custom24}" TARGET="_BLANK">
<xsl:value-of select="custom24"/>
</A>
</xsl:if>
</TD>
</TR>
</xsl:if>

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

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

Re: StampCat, StampBrowse.xsl

Postby Alex Ivanovich » Sun Apr 24, 2016 3:58 pm

Hi Johnnyt

sorry for my English :(

I do not understand what you see :roll:
you give an example or some screenshots? :|

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

Re: StampCat, StampBrowse.xsl

Postby Johnnyt » Sun Apr 24, 2016 4:30 pm

Ok here you go!

Excerpts from my StampBrowse pane, "Ja" (norwegian Yes) should be replaced with Custom24 controlname and from my databse setup.
Attachments
DatabaseSetup field.jpg
DatabaseSetup field.jpg (26.16 KiB) Viewed 532 times
StampBrowse Pane.jpg
StampBrowse Pane.jpg (85.96 KiB) Viewed 532 times
-------------
StampCAT
CATraxx
BookCAT
CATVids

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

Re: StampCat, StampBrowse.xsl

Postby Alex Ivanovich » Sun Apr 24, 2016 4:56 pm

:roll:

sorry
but I can not understand from the screenshot :?
please post example in English? :|

and that what you want? :roll:

Code: Select all

<xsl:if test="custom24!='No'">
<xsl:text> - </xsl:text>
<A HREF="StampList.xsl?Custom24={custom24}@xslparam:doctitle={/data/fld/custom24/@name}: {custom24}" TARGET="_BLANK">
<xsl:value-of select="/data/fld/custom24/@name"/>

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

Re: StampCat, StampBrowse.xsl

Postby Johnnyt » Sun Apr 24, 2016 5:15 pm

The code you posted is the code I want to change in such matter it will return the Custom24 control name "Seneste dato sett av meg" (translated: "Earliest date observed by me".
As it is by now, it returns "Ja", thats not what I want.
Attachments
Registration Custom24.jpg
Registration Custom24.jpg (17.14 KiB) Viewed 527 times
-------------
StampCAT
CATraxx
BookCAT
CATVids

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

Re: StampCat, StampBrowse.xsl

Postby DougWilliams » Sun Apr 24, 2016 5:28 pm

Hi Johnnyt.

Could you post the full Stamp.xsl?
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

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

Re: StampCat, StampBrowse.xsl

Postby Johnnyt » Sun Apr 24, 2016 5:36 pm

Yes, I will be happy to post!
To avoid any misunderstanding, do you ask for StampBrowse.xsl where I have partly posted earlier or do you ask for Stamp.xsl?
-------------
StampCAT
CATraxx
BookCAT
CATVids

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

Re: StampCat, StampBrowse.xsl

Postby DougWilliams » Sun Apr 24, 2016 5:49 pm

StampBrowse.xsl
I mis-typed previously.
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

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

Re: StampCat, StampBrowse.xsl

Postby Alex Ivanovich » Sun Apr 24, 2016 5:59 pm

It would be good to send template "StampBrowse.xsl" and database ;)

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

Re: StampCat, StampBrowse.xsl

Postby Johnnyt » Sun Apr 24, 2016 5:59 pm

Ok!
Here it goes:

Code: Select all

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

<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 CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
    <TR>     
      <TD VALIGN="TOP" WITDH="*">
        <TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%">         
          <TR>
            <TD VALIGN="TOP" WIDTH="35%">
              <TABLE CELLPADDING="1" CELLSPACING="1" WIDTH="100%" CLASS="fieldtableprevpane">
                <!-- Catalog No -->
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/catalogno/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:value-of select="catalogno"/>
                  </TD>
                </TR>
                <!-- Country -->
          <TR CLASS="fieldrowprevpane">
            <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/country/@name"/>            
      <!-- 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></TD>
            <TD CLASS="fieldvalueprevpane" WIDTH="100%">
              <A HREF="StampList.xsl?Country={country}@xmltitle={/data/fld/country/@name}: {country}" TARGET="_BLANK">
                <xsl:value-of select="country"/>
      </A>
            </TD>
          </TR>
                <!-- Face Value -->
                <xsl:if test="facevalue!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/facevalue/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:value-of select="facevalue"/>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Issued -->
                <xsl:if test="issued!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/issued/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Design -->
                <xsl:if test="design!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/design/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:value-of select="design"/>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Topic -->
                <xsl:if test="topic!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/topic/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                  <A HREF="StampList.xsl?Topic={topic/text()}@xslparam:doctitle={/data/fld/topic/@name}: {topic/text()}" TARGET="_BLANK">
                   <xsl:value-of select="topic/text()"/></A>
                  </TD>
                </TR>
                </xsl:if>
      <!-- Registered -->
                <xsl:if test="registered!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/registered/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Registered={registered/@unformatted}@xslparam:doctitle={/data/fld/registered/@name}: {registered}" TARGET="_BLANK">
                      <xsl:value-of select="registered"/>
                    </A>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Width -->
                <!--xsl:if test="width/@unformatted>0.00">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/width/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:value-of select="width"/>
                  </TD>
                </TR>
                </xsl:if-->
                <!-- Height -->
                <!--xsl:if test="height/@unformatted>0.00">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/height/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:value-of select="height"/>
                  </TD>
                </TR>
                </xsl:if-->                                               
                <!-- Location -->
                <xsl:if test="location!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/location/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Code -->
                <xsl:if test="code!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/code/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Status -->
                <xsl:if test="status!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/status/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>                                 
                <!-- Date Acquired -->
                <xsl:if test="dateacquired!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/dateacquired/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Custom 08 -->
                <xsl:if test="custom08!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom08/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom08={custom08}@xslparam:doctitle={/data/fld/custom08/@name}: {custom08}" TARGET="_BLANK">
                      <xsl:value-of select="custom08"/>
                    </A>
                  </TD>
                </TR>
                </xsl:if> 
                <!-- Price -->
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/price/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%"><xsl:text> Kr. </xsl:text>
                    <xsl:value-of select="price"/>
                  </TD>
                </TR>               
                <!-- Quantity -->
                <!--TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/quantity/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:value-of select="quantity"/>
                  </TD>
                </TR-->
                <!-- Value -->
      <xsl:if test="value=@unformatted>0.00">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/value/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%"><xsl:text> Kr. </xsl:text>
                    <xsl:value-of select="value"/>
                  </TD>
                </TR>
      </xsl:if>
              </TABLE>
            </TD>
            <!-- Add 5 pixels between column 2 and 3 -->
            <TD WIDTH="5">
            </TD>
            <TD VALIGN="TOP" WIDTH="*">
              <TABLE CELLPADDING="1" CELLSPACING="1" WIDTH="100%" CLASS="fieldtableprevpane">
                <!-- Catalog -->
                <xsl:if test="catalog!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/catalog/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Class -->
                <xsl:if test="class!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/class/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Type -->
                <xsl:if test="type!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/type/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>             
                <!-- Color -->
                <xsl:if test="color!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/color/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Perforation -->
                <!--xsl:if test="perforation_full!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/perforation_full/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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-->
          <!-- Perforation -->
          <!--xsl:if test="perforation_horiz!=''">
          <TR CLASS="fieldrowprevpane">
            <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/perforation_horiz/@name"/></TD>
            <TD CLASS="fieldvalueprevpane" WIDTH="100%">
              <A HREF="StampList.xsl?Perforation_horiz={perforation_horiz}@xmltitle={/data/fld/perforation_horiz/@name}: {perforation}" TARGET="_BLANK">
                <xsl:value-of select="perforation_horiz"/>
              </A>
            </TD>
          </TR>
          </xsl:if-->
                <!-- Group -->
                <xsl:if test="group!='' or custom06!='' or custom02!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/group/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Group={group}@xslparam:doctitle={/data/fld/group/@name}: {group}" TARGET="_BLANK">
                      <xsl:value-of select="group"/>
                    </A>
         <xsl:if test="custom06!=''">
                      <xsl:text>, Nummerert </xsl:text>
                      <A HREF="StampList.xsl?Custom06={custom06}@xslparam:doctitle={/data/fld/custom06/@name}: {custom06}" TARGET="_BLANK">
                        <xsl:value-of select="custom06"/>
                      </A>
                      <xsl:text> av </xsl:text>
                      <A HREF="StampList.xsl?Custom02={custom02}@xslparam:doctitle={/data/fld/custom02/@name}: {custom02}" TARGET="_BLANK">
                        <xsl:value-of select="custom02"/>
                      </A>
                    </xsl:if>
                  </TD>
                </TR>
                </xsl:if>               
                <!-- Width x Height -->
                <xsl:if test="width/@unformatted>0.00 or height/@unformatted>0.00">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:text>Bredde x Høyde [mm]</xsl:text></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:if test="width/@unformatted>0.00">
                    <xsl:value-of select="width"/>
                      <xsl:text> x </xsl:text>     
                   <xsl:if test="height/@unformatted>0.00">
                   <xsl:if test="height/@unformatted>0.00">                   
                    <xsl:value-of select="height"/>
                    </xsl:if>
                    </xsl:if>
                    </xsl:if>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Condition -->
                <xsl:if test="condition!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/condition/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Hinged -->
                <xsl:if test="hinged!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/hinged/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Category -->
                <xsl:if test="category!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/category/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Postmark -->
                <xsl:if test="postmark!='' or postmarkcity!='' or postmarkdate!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:text>Stempeltype, sted og dato</xsl:text></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
                <!-- Custom 20 or Custom 21 -->
                <xsl:if test="custom20!='' or custom21!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:text>Brukstid for stempelet</xsl:text></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom20={custom20}@xslparam:doctitle={/data/fld/custom20/@name}: {custom20}" TARGET="_BLANK">
                      <xsl:value-of select="custom20"/>
                    </A>
                    <xsl:if test="custom21!=''">
                      <xsl:text> - </xsl:text>
                      <A HREF="StampList.xsl?Custom21={custom21}@xslparam:doctitle={/data/fld/custom21/@name}: {custom21}" TARGET="_BLANK">
                        <xsl:value-of select="custom21"/>
                      </A>
                    </xsl:if>
                  </TD>
                </TR>
                </xsl:if>
      <!-- Custom14 -->
                <xsl:if test="custom14!='Nei'">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom14/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom14={custom14}@xslparam:doctitle={/data/fld/custom14/@name}: {custom14}" TARGET="_BLANK">
                      <xsl:value-of select="custom14"/>
                      </A>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Custom 31 or Custom 23 -->
                <xsl:if test="custom31!=''or custom23!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom31/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom31={custom11}@xslparam:doctitle={/data/fld/custom31/@name}: {custom31}" TARGET="_BLANK">
                      <xsl:value-of select="custom31"/>
                    </A>
                    <xsl:if test="custom23!=''">
                      <xsl:text> - </xsl:text>
                      <A HREF="StampList.xsl?Custom23={custom23}@xslparam:doctitle={/data/fld/custom23/@name}: {custom23}" TARGET="_BLANK">
                        <xsl:value-of select="custom23"/>
            </A>
          </xsl:if>
                  </TD>
                </TR>
      </xsl:if>
                <!-- Custom 32 or Custom 24-->
                <xsl:if test="custom32!='' or custom24!='Nei'">
                <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={custom11}@xslparam:doctitle={/data/fld/custom32/@name}: {custom32}" TARGET="_BLANK">
                      <xsl:value-of select="custom32"/>
                    </A>
                    <xsl:if test="custom24!='Nei'">
                      <xsl:text> - </xsl:text>
                      <A HREF="StampList.xsl?Custom24={custom24}@xslparam:doctitle={/data/fld/custom24/@name}: {custom24}" TARGET="_BLANK">
                        <xsl:value-of select="custom24"/>
            </A>
          </xsl:if>
                  </TD>
                </TR>
      </xsl:if>
                <!-- Custom 11 -->
                <xsl:if test="custom11!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom11/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom11={custom11}@xslparam:doctitle={/data/fld/custom11/@name}: {custom11}" TARGET="_BLANK">
                      <xsl:value-of select="custom11"/>
                    </A>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Custom 15 -->
                <xsl:if test="custom15!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom15/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom15={custom15}@xslparam:doctitle={/data/fld/custom15/@name}: {custom15}" TARGET="_BLANK">
                      <xsl:value-of select="custom15"/>
                    </A>
                  </TD>
                </TR>
                </xsl:if>
      <!-- Custom07 -->
                <xsl:if test="custom07!=''">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom07/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom07={custom07}@xslparam:doctitle={/data/fld/custom07/@name}: {custom07}" TARGET="_BLANK">
                      <xsl:value-of select="custom07"/>
                    </A>
                  </TD>
                </TR>
                </xsl:if>   
      <!-- Custom12 -->
                <xsl:if test="custom12!='Nei'">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom12/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" 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>
      <!-- Custom25 -->
                <xsl:if test="custom25!='Nei'">
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP=""><xsl:value-of select="/data/fld/custom25/@name"/></TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <A HREF="StampList.xsl?Custom25={custom25}@xslparam:doctitle={/data/fld/custom25/@name}: {custom25}" TARGET="_BLANK">
                      <xsl:value-of select="custom25"/>
                      </A>
                  </TD>
                </TR>
                </xsl:if>               
                <!-- Keywords -->   
                <xsl:if test="count(keywords/keyword)>0">       
                <TR CLASS="fieldrowprevpane">
                  <TD CLASS="fieldnameprevpane" NOWRAP="">
                    <xsl:value-of select="/data/fld/keyword/@name"/>         
                  </TD>
                  <TD CLASS="fieldvalueprevpane" WIDTH="100%">
                    <xsl:call-template name="format-keywords">
                      <xsl:with-param name="keywords" select="keywords"/>
                      <xsl:with-param name="newwindow" select="'True'"/>
                      <xsl:with-param name="newline" select="'True'"/>
                    </xsl:call-template>
                  </TD>
                </TR>
                </xsl:if>               
              </TABLE>
            </TD>
          </TR>                   
          <TR>
            <TD COLSPAN="3">
              <TABLE CELLPADDING="1" CELLSPACING="1" WIDTH="100%" CLASS="fieldtableprevpane">
                <!-- Stamp Links -->
                <xsl:if test="count(stamplinks/stamplink)>0">
                <TR CLASS="fieldrowprevpane">           
                  <TD COLSPAN="2" CLASS="fieldnameprevpane">
                    <xsl:value-of select="/data/fld/stamplinks/@name"/>         
                  </TD>
                </TR>
                <TR>
                  <TD COLSPAN="2" CLASS="fieldvalueprevpane">
                    <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() &lt; last()">
                        <BR/>
                      </xsl:if >                 
                    </xsl:for-each>
                  </TD>
                </TR>
                </xsl:if>
                <!-- Notes -->
                <TR CLASS="fieldrowprevpane">           
                  <TD COLSPAN="2" CLASS="fieldnameprevpane">
                    <xsl:value-of select="/data/fld/notes/@name"/>         
                   <A HREF="CMD:EDITMEMO:stamp,notes,{stampid/@unformatted}"><xsl:text> </xsl:text><IMG SRC="EditMemo.gif" BORDER="0"/></A>       
                  </TD>
                </TR>
                <TR>
                  <TD COLSPAN="2" CLASS="fieldvalueprevpane">
                    <xsl:if test="notes!=''">
                      <xsl:call-template name="add-line-breaks">
                        <xsl:with-param name="string" select="notes"/>
                      </xsl:call-template>
                      <BR/>
                    </xsl:if>
                  </TD>
                </TR>
      <!-- Topic Notes -->
      <xsl:if test="topic/lookupdata/notes!=''">
      <TR CLASS="fieldrowprevpane">
         <TD COLSPAN="2" CLASS="fieldnameprevpane">
         <xsl:text>Poststed Notater</xsl:text>
             <A HREF="CMD:EDITMEMO:topic,notes,{topic/lookupdata/topicid/@unformatted}"><xsl:text> </xsl:text><IMG SRC="EditMemo.gif" BORDER="0"/></A>
         </TD>
        </TR>
       <TR>
        <TD COLSPAN="2" CLASS="fieldvalueprevpane">
            <xsl:call-template name="add-line-breaks">
               <xsl:with-param name="string" select="topic/lookupdata/notes"/>
            </xsl:call-template>
        </TD>
      </TR>
      </xsl:if>
                <!-- File Links -->
                <xsl:if test="count(filelinks/filelink) > 0">
                <TR CLASS="fieldrowprevpane">           
                  <TD COLSPAN="2" CLASS="fieldnameprevpane">
                    <xsl:value-of select="/data/fld/filelinks/@name"/>         
                  </TD>
                </TR>
                <TR>
                  <TD COLSPAN="2" CLASS="fieldvalueprevpane">
                    <xsl:call-template name="format-filelinks">
                      <xsl:with-param name="filelinks" select="filelinks"/>
                    </xsl:call-template>
                  </TD>
                </TR>
                </xsl:if>             
                <!-- Web Links -->
                <xsl:if test="count(weblinks/weblink) > 0">
                <TR CLASS="fieldrowprevpane">           
                  <TD COLSPAN="2" CLASS="fieldnameprevpane">
                    <xsl:value-of select="/data/fld/weblinks/@name"/>         
                  </TD>
                </TR>
                <TR>
                  <TD COLSPAN="2" CLASS="fieldvalueprevpane">
                    <xsl:call-template name="format-weblinks">
                      <xsl:with-param name="weblinks" select="weblinks"/>
                    </xsl:call-template>
                  </TD>
                </TR>
                </xsl:if>                                             
              </TABLE>
            </TD>
          </TR>
        </TABLE>       
      </TD>
      <xsl:if test="image1/filename!='' and image1/@virtual='No'">
      <TD WIDTH="10"></TD>
      <TD VALIGN="TOP" WIDTH="150">
        <xsl:if test="image1/filename!='' and image1/@virtual='No'">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},1" TARGET="_BLANK"><IMG BORDER="0" SRC="{image1/filename}" WIDTH="400" CLASS="imagefield_vertical"/></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" TARGET="_BLANK"><IMG BORDER="0" SRC="{image2/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image2/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image3/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},3" TARGET="_BLANK"><IMG BORDER="0" SRC="{image3/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image3/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image4/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},4" TARGET="_BLANK"><IMG BORDER="0" SRC="{image4/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image4/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image5/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},5" TARGET="_BLANK"><IMG BORDER="0" SRC="{image5/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image5/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image6/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},6" TARGET="_BLANK"><IMG BORDER="0" SRC="{image6/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image6/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image7/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},7" TARGET="_BLANK"><IMG BORDER="0" SRC="{image7/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image7/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image8/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},8" TARGET="_BLANK"><IMG BORDER="0" SRC="{image8/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image8/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>
        <xsl:if test="image9/filename!=''">
        <A HREF="CMD:VIEWIMAGE:Stamp,{@id},9" TARGET="_BLANK"><IMG BORDER="0" SRC="{image9/filename}" WIDTH="400" CLASS="imagefield_vertical"/></A>
            <BR/>
            <xsl:call-template name="add-line-breaks">
              <xsl:with-param name="string" select="image9/notes"/>
            </xsl:call-template> 
            <BR/>   
        </xsl:if>       
      </TD>
      </xsl:if>
    </TR>
  </TABLE> 
</xsl:template>
</xsl:stylesheet>


Hope you can make something out of it
-------------
StampCAT
CATraxx
BookCAT
CATVids


Return to “Explorer Templates”

Who is online

Users browsing this forum: No registered users and 1 guest