Last change
on this file since 3312 was 3312, checked in by kjdon, 22 years ago |
slightly better xsl, separated style stuff into style.xsl
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.4 KB
|
Line | |
---|
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="collectionList"/>
|
---|
17 | </center>
|
---|
18 | <xsl:call-template name="greenstoneFooter"/>
|
---|
19 | </body>
|
---|
20 | </html>
|
---|
21 | </xsl:template>
|
---|
22 |
|
---|
23 |
|
---|
24 |
|
---|
25 | <xsl:template match="collectionList">
|
---|
26 | <xsl:for-each select="collection">
|
---|
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>
|
---|
28 | </xsl:for-each>
|
---|
29 | </xsl:template>
|
---|
30 |
|
---|
31 |
|
---|
32 | <xsl:template match="serviceList">
|
---|
33 | Services available are:
|
---|
34 |
|
---|
35 | Transforms:
|
---|
36 | <xsl:for-each select="service[@type='transform']">
|
---|
37 | <xsl:value-of select="@name"/>.
|
---|
38 | </xsl:for-each>
|
---|
39 |
|
---|
40 | Enrichs:
|
---|
41 | <xsl:for-each select="service[@type='enrich']">
|
---|
42 | <xsl:value-of select="@name"/>.
|
---|
43 | </xsl:for-each>
|
---|
44 |
|
---|
45 | Querys:
|
---|
46 | <xsl:for-each select="service[@type='query']">
|
---|
47 | <xsl:value-of select="@name"/>.
|
---|
48 | </xsl:for-each>
|
---|
49 |
|
---|
50 | </xsl:template>
|
---|
51 |
|
---|
52 |
|
---|
53 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.