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

Last change on this file since 6690 was 6456, checked in by kjdon, 20 years ago

moved the divider bar calls so they only appear if the above bit is there

  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 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 <xsl:apply-templates select="collectionList"/>
25 <xsl:apply-templates select="serviceClusterList"/>
26 </xsl:template>
27
28 <xsl:template match="collectionList">
29 <xsl:for-each select="collection">
30 <p>
31 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
32 <img width="150" border="1">
33 <xsl:attribute name="src">
34 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/>
35 </xsl:attribute>
36 <xsl:attribute name="alt">
37 <xsl:value-of select="displayItem[@name='name']"/>
38 </xsl:attribute>
39 </img>
40 </a>
41 </p>
42 </xsl:for-each>
43 <xsl:call-template name="dividerBar"/>
44 </xsl:template>
45
46 <xsl:template match="serviceClusterList">
47 <xsl:for-each select="serviceCluster">
48 <p/><a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItem[@name='name']"/></a>
49 </xsl:for-each>
50 <xsl:call-template name="dividerBar"/>
51 </xsl:template>
52
53</xsl:stylesheet>
54
55
Note: See TracBrowser for help on using the repository browser.