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

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

default interface stylesheets

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 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="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>
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::message/system/@sitename"/>/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
33<xsl:template match="serviceList">
34Services available are:
35
36Transforms:
37<xsl:for-each select="service[@type='transform']">
38<xsl:value-of select="@name"/>.
39</xsl:for-each>
40
41Enrichs:
42<xsl:for-each select="service[@type='enrich']">
43<xsl:value-of select="@name"/>.
44</xsl:for-each>
45
46Querys:
47<xsl:for-each select="service[@type='query']">
48<xsl:value-of select="@name"/>.
49</xsl:for-each>
50
51</xsl:template>
52
53
54</xsl:stylesheet>
55
56
Note: See TracBrowser for help on using the repository browser.