Changeset 3474 for trunk/gsdl3/interfaces/default/transform/about.xsl
- Timestamp:
- 2002-10-25T10:13:09+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/interfaces/default/transform/about.xsl
r3464 r3474 15 15 <body xsl:use-attribute-sets="body-style"> 16 16 <center> 17 <xsl:apply-templates select="response/collection "><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>17 <xsl:apply-templates select="response/collection|response/serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 18 18 </center> 19 19 <xsl:call-template name="greenstoneFooter"/> … … 31 31 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 32 32 </xsl:apply-templates> 33 <p/><xsl:apply-templates select="serviceList"> 33 <p/><xsl:apply-templates select="serviceList" mode="collection"> 34 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 35 </xsl:apply-templates> 36 </xsl:template> 37 38 <xsl:template match="serviceCluster"> 39 <xsl:param name="collName">x</xsl:param> 40 <xsl:call-template name="clusterPageBanner"> 41 <xsl:with-param name="clusterName"><xsl:value-of select="$collName"/></xsl:with-param></xsl:call-template> 42 <p/><xsl:apply-templates select="metadataList"> 43 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 44 </xsl:apply-templates> 45 <p/><xsl:apply-templates select="serviceList" mode="cluster"> 34 46 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 35 47 </xsl:apply-templates> … … 37 49 38 50 51 39 52 <xsl:template match="metadataList"> 40 53 <xsl:param name="collName">coll-name</xsl:param> 41 <h2> Collection description</h2>54 <h2>Description</h2> 42 55 <p/> 43 56 <table> 44 57 <xsl:for-each select="metadata"> 45 <tr><td>< xsl:value-of select="@name"/></td><td><xsl:value-of select="."/></td></tr>58 <tr><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr> 46 59 </xsl:for-each> 47 60 </table> 48 61 </xsl:template> 49 62 50 <xsl:template match="serviceList" >63 <xsl:template match="serviceList" mode="collection"> 51 64 <xsl:param name="collName">coll-name</xsl:param> 52 65 <xsl:variable name="library" select="ancestor::page/config/library_name"/> … … 74 87 </xsl:if> 75 88 </tr> 76 77 89 </xsl:for-each> 78 90 </table> … … 81 93 82 94 95 <xsl:template match="serviceList" mode="cluster"> 96 <xsl:param name="collName">coll-name</xsl:param> 97 <xsl:variable name="library" select="ancestor::page/config/library_name"/> 98 <h2>Services available</h2> 99 <table> 100 <xsl:for-each select="service"> 101 <tr><td><a href="{$library}?a={$collName}&sa={@name}"><xsl:value-of select="@name"/></a></td></tr> 102 </xsl:for-each> 103 </table> 104 <xsl:call-template name="greenBar"/> 105 </xsl:template> 106 83 107 </xsl:stylesheet> 84 108
Note:
See TracChangeset
for help on using the changeset viewer.