Changeset 4277
- Timestamp:
- 2003-05-13T10:54:40+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/nzdl/transform/home.xsl
r4151 r4277 104 104 <!-- 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. --> 105 105 <xsl:template match="collection"> 106 <p /> 107 <a> 108 <xsl:attribute name='href'> 109 <xsl:value-of select="ancestor::page/pageExtra/config/library_name"/>?a=p&sa=about&c=<xsl:value-of select='@name'/> 106 <p /> 107 <a> 108 <xsl:attribute name='href'> 109 <xsl:value-of select="ancestor::page/pageExtra/config/library_name"/>?a=p&sa=about&c=<xsl:value-of select='@name'/> 110 </xsl:attribute> 111 <img width="150" border="1"> 112 <xsl:attribute name="src"> 113 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:choose><xsl:when test="metadataList/metadata[@name='colIconSmall']"><xsl:value-of select="metadataList/metadata[@name='colIconSmall']"/></xsl:when><xsl:otherwise><xsl:value-of select="metadataList/metadata[@name='colIcon']"/></xsl:otherwise></xsl:choose> 110 114 </xsl:attribute> 111 <img width="150" border="1"> 112 <xsl:attribute name="src"> 113 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/> 114 </xsl:attribute> 115 <xsl:attribute name="alt"> 116 <xsl:value-of select="metadataList/metadata[@name='colName']"/> 117 </xsl:attribute> 118 </img> 119 </a> 115 <xsl:attribute name="alt"> 116 <xsl:value-of select="metadataList/metadata[@name='colName']"/> 117 </xsl:attribute> 118 </img> 119 </a> 120 120 <p /> 121 121 </xsl:template> … … 142 142 </td> 143 143 <td align='center'> 144 <p /> mhl<xsl:apply-templates select="collection[@name='mhl']"/>144 <p /><xsl:apply-templates select="collection[@name='mhl']"/> 145 145 <p />fnl<xsl:apply-templates select="collection[@name='fnl']"/> 146 146 <p />paho<xsl:apply-templates select="collection[@name='paho']"/>
Note:
See TracChangeset
for help on using the changeset viewer.