Changeset 3312
- Timestamp:
- 2002-08-02T14:31:48+12:00 (22 years ago)
- Location:
- trunk/gsdl3/transform
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/transform/home.xsl
r3222 r3312 3 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 4 5 <xsl: output method="text"/>5 <xsl:include href="style.xsl"/> 6 6 7 <xsl:template match="/message/response"> 7 <xsl:output method="html"/> 8 9 <xsl:template match="/message"> 10 <html> 11 <xsl:call-template name="greenstoneHead"/> 12 <body xsl:use-attribute-sets="body-style"> 13 14 <xsl:call-template name="greenstonePageBanner"/> 15 <center> 8 16 <xsl:apply-templates select="collectionList"/> 9 <xsl:apply-templates select="serviceList"/> 17 </center> 18 <xsl:call-template name="greenstoneFooter"/> 19 </body> 20 </html> 10 21 </xsl:template> 11 22 … … 13 24 14 25 <xsl:template match="collectionList"> 15 Collections available are:16 26 <xsl:for-each select="collection"> 17 <xsl:value-of select="@name"/>: <xsl:value-of select="metadata[@name='Title']"/><xsl:text> 18 </xsl:text> 27 <p><a href="library?a=p&p=about&c={@name}"><img width="150" border="1"><xsl:attribute name="src">/gsdl3/images/sites/localsite/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="metadata[@name='icon']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="metadata[@name='title']"/></xsl:attribute></img></a></p> 19 28 </xsl:for-each> 20 29 </xsl:template> 21 30 22 <xsl:template match="collection">23 <xsl:value-of select="@name"/>. <xsl:value-of select="metadata[@name='Title']"/>24 </xsl:template>25 31 26 32 <xsl:template match="serviceList">
Note:
See TracChangeset
for help on using the changeset viewer.