Changeset 4025


Ignore:
Timestamp:
2003-03-28T10:12:02+12:00 (21 years ago)
Author:
kjdon
Message:

pageHead now defined in each xsl file

Location:
trunk/gsdl3/interfaces/default/transform
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/interfaces/default/transform/about.xsl

    r4002 r4025  
    88 
    99  <xsl:output method="html"/> 
     10
     11  <xsl:template name="pageHead">
     12    <head>
     13      <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
     14    </head>
     15  </xsl:template>
    1016
    1117  <xsl:template match="pageResponse">
  • trunk/gsdl3/interfaces/default/transform/applet.xsl

    r4002 r4025  
    66 
    77  <xsl:output method="html"/> 
     8
     9  <xsl:template name="pageHead">
     10    <head>
     11      <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
     12    </head>
     13  </xsl:template>
     14
    815  <xsl:template match="pageResponse">
    916    <xsl:variable name="collName"><xsl:value-of select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
  • trunk/gsdl3/interfaces/default/transform/basicquery.xsl

    r4002 r4025  
    77
    88<xsl:output method="html"/>
     9
     10  <xsl:template name="pageHead">
     11    <head>
     12      <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
     13    </head>
     14  </xsl:template>
    915
    1016  <xsl:template match="pageResponse">
  • trunk/gsdl3/interfaces/default/transform/classifier.xsl

    r4002 r4025  
    88
    99  <xsl:output method="html"/> 
     10
     11  <xsl:template name="pageHead">
     12    <head>
     13      <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
     14    </head>
     15  </xsl:template>
    1016
    1117  <xsl:template match="pageResponse">
  • trunk/gsdl3/interfaces/default/transform/home.xsl

    r4002 r4025  
    66
    77<xsl:output method="html"/> 
     8
     9  <xsl:template name="pageHead">
     10    <head>
     11      <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
     12    </head>
     13  </xsl:template>
    814
    915  <xsl:template match="pageResponse">
     
    1824
    1925<!-- the ancestor axis contains the parent of the context node, and its parent and so on. to pick one node among these: ancestor::elem-name. I dont know how this works if there are two nodes with the same name in the axis. -->
    20 <xsl:template match="collectionList">
    21 <xsl:for-each select="collection">
    22 <p>
    23   <a>
    24     <xsl:attribute name='href'>
    25       <xsl:value-of select="ancestor::page/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/>
    26     </xsl:attribute>
    27     <img width="150" border="1">
    28       <xsl:attribute name="src">
    29         <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/>
    30       </xsl:attribute>
    31       <xsl:attribute name="alt">
    32         <xsl:value-of select="metadataList/metadata[@name='colName']"/>
    33       </xsl:attribute>
    34     </img>
    35   </a>
    36 </p>
    37 </xsl:for-each>
    38 <xsl:call-template name="greenBar"/>
    39 </xsl:template>
    40 
     26  <xsl:template match="collectionList">
     27    <xsl:for-each select="collection">
     28      <p>
     29    <a>
     30      <xsl:attribute name='href'>
     31        <xsl:value-of select="ancestor::page/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/>
     32      </xsl:attribute>
     33      <img width="150" border="1">
     34        <xsl:attribute name="src">
     35          <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/>
     36        </xsl:attribute>
     37        <xsl:attribute name="alt">
     38          <xsl:value-of select="metadataList/metadata[@name='colName']"/>
     39        </xsl:attribute>
     40      </img>
     41    </a>
     42      </p>
     43    </xsl:for-each>
     44    <xsl:call-template name="greenBar"/>
     45  </xsl:template>
     46 
     47  <xsl:template match="serviceList">
     48    <xsl:for-each select="service">
     49    <p /> service name=<xsl:value-of select="@name"/>
     50    </xsl:for-each>
     51  </xsl:template>
     52 
    4153<xsl:template match="serviceClusterList">
    4254<xsl:for-each select="serviceCluster">
  • trunk/gsdl3/interfaces/default/transform/process.xsl

    r4002 r4025  
    77
    88  <xsl:output method="html"/> 
     9
     10  <xsl:template name="pageHead">
     11    <head>
     12      <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
     13    </head>
     14  </xsl:template>
    915
    1016  <xsl:template match="pageResponse">
Note: See TracChangeset for help on using the changeset viewer.