Changeset 3312


Ignore:
Timestamp:
2002-08-02T14:31:48+12:00 (22 years ago)
Author:
kjdon
Message:

slightly better xsl, separated style stuff into style.xsl

Location:
trunk/gsdl3/transform
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/transform/home.xsl

    r3222 r3312  
    33xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    44
    5 <xsl:output method="text"/> 
     5<xsl:include href="style.xsl"/>
    66
    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>
    816<xsl:apply-templates select="collectionList"/>
    9 <xsl:apply-templates select="serviceList"/>
     17</center>
     18<xsl:call-template name="greenstoneFooter"/>
     19</body>
     20</html>
    1021</xsl:template>
    1122
     
    1324
    1425<xsl:template match="collectionList">
    15 Collections available are:
    1626<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&amp;p=about&amp;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>
    1928</xsl:for-each>
    2029</xsl:template>
    2130
    22 <xsl:template match="collection">
    23 <xsl:value-of select="@name"/>. <xsl:value-of select="metadata[@name='Title']"/>
    24 </xsl:template>
    2531
    2632<xsl:template match="serviceList">
Note: See TracChangeset for help on using the changeset viewer.