1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <xsl:stylesheet version="1.0"
|
---|
3 | xmlns: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&sa=about&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">
|
---|
34 | Services available are:
|
---|
35 |
|
---|
36 | Transforms:
|
---|
37 | <xsl:for-each select="service[@type='transform']">
|
---|
38 | <xsl:value-of select="@name"/>.
|
---|
39 | </xsl:for-each>
|
---|
40 |
|
---|
41 | Enrichs:
|
---|
42 | <xsl:for-each select="service[@type='enrich']">
|
---|
43 | <xsl:value-of select="@name"/>.
|
---|
44 | </xsl:for-each>
|
---|
45 |
|
---|
46 | Querys:
|
---|
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 |
|
---|