source: trunk/gsdl3/interfaces/default/transform/home.xsl@ 3360

Last change on this file since 3360 was 3360, checked in by kjdon, 22 years ago

stylesheet improvements

  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5<xsl:include href="style.xsl"/>
6
7<xsl:output method="html"/>
8
9<xsl:template match="page">
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>
16<xsl:apply-templates select="response/collectionList"/>
17</center>
18<xsl:call-template name="greenstoneFooter"/>
19</body>
20</html>
21</xsl:template>
22
23
24<!-- 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. -->
25<xsl:template match="collectionList">
26<xsl:for-each select="collection">
27<p><a href="library?a=p&amp;sa=about&amp;c={@name}"><img width="150" border="1"><xsl:attribute name="src">sites/<xsl:value-of select="ancestor::page/config/site_name"/>/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="metadataList/metadata[@name='iconCollection']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="metadataList/metadata[@name='colName']"/></xsl:attribute></img></a></p>
28</xsl:for-each>
29<xsl:call-template name="greenBar"/>
30</xsl:template>
31
32</xsl:stylesheet>
33
34
Note: See TracBrowser for help on using the repository browser.