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

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

a little bit of tidying

  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 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 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 extension-element-prefixes="java util"
7 exclude-result-prefixes="java util">
8
9 <!-- style includes global params interface_name, library_name -->
10 <xsl:include href="style.xsl"/>
11
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageHead">
15 <head>
16 <title>
17 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
18 </title>
19 </head>
20 </xsl:template>
21
22 <xsl:template match="pageResponse">
23 <xsl:call-template name="greenstonePageBanner"/>
24 <center>
25 <xsl:apply-templates select="collectionList"/>
26 <xsl:apply-templates select="serviceClusterList"/>
27 <xsl:apply-templates select="serviceList"/>
28 </center>
29 </xsl:template>
30
31
32<!-- 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. -->
33 <xsl:template match="collectionList">
34 <xsl:for-each select="collection">
35 <p>
36 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
37 <img width="150" border="1">
38 <xsl:attribute name="src">
39 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="metadataList/metadata[@name='colIcon']"/>
40 </xsl:attribute>
41 <xsl:attribute name="alt">
42 <xsl:value-of select="metadataList/metadata[@name='colName']"/>
43 </xsl:attribute>
44 </img>
45 </a>
46 </p>
47 </xsl:for-each>
48 <xsl:call-template name="greenBar"/>
49 </xsl:template>
50
51 <xsl:template match="serviceClusterList">
52 <xsl:for-each select="serviceCluster">
53 <p/><a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"><xsl:value-of select='@name'/></a>
54 </xsl:for-each>
55 <xsl:call-template name="greenBar"/>
56 </xsl:template>
57
58</xsl:stylesheet>
59
60
Note: See TracBrowser for help on using the repository browser.