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

Last change on this file since 4253 was 4251, checked in by kjdon, 21 years ago

title set to _gsdl_ not _nzdl_

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 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 name="pageHead">
10 <head>
11 <title><xsl:call-template name="text"><xsl:with-param name="key">gsdl</xsl:with-param></xsl:call-template></title>
12 </head>
13 </xsl:template>
14
15 <xsl:template match="pageResponse">
16 <xsl:call-template name="greenstonePageBanner"/>
17 <center>
18 <xsl:apply-templates select="collectionList"/>
19 <xsl:apply-templates select="serviceClusterList"/>
20 <xsl:apply-templates select="serviceList"/>
21 </center>
22 </xsl:template>
23
24
25<!-- 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. -->
26 <xsl:template match="collectionList">
27 <xsl:for-each select="collection">
28 <p>
29 <a>
30 <xsl:attribute name='href'>
31 <xsl:value-of select="ancestor::page/pageExtra/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/>
32 </xsl:attribute>
33 <img width="150" border="1">
34 <xsl:attribute name="src">
35 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/>
36 </xsl:attribute>
37 <xsl:attribute name="alt">
38 <xsl:value-of select="metadataList/metadata[@name='colName']"/>
39 </xsl:attribute>
40 </img>
41 </a>
42 </p>
43 </xsl:for-each>
44 <xsl:call-template name="greenBar"/>
45 </xsl:template>
46
47 <xsl:template match="serviceList">
48 <xsl:for-each select="service">
49 <p /> service name=<xsl:value-of select="@name"/>
50 </xsl:for-each>
51 </xsl:template>
52
53<xsl:template match="serviceClusterList">
54<xsl:for-each select="serviceCluster">
55<p/><a><xsl:attribute name='href'><xsl:value-of select="ancestor::page/pageExtra/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/></xsl:attribute><xsl:value-of select='@name'/></a>
56</xsl:for-each>
57<xsl:call-template name="greenBar"/>
58</xsl:template>
59
60</xsl:stylesheet>
61
62
Note: See TracBrowser for help on using the repository browser.