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

Last change on this file since 9011 was 8526, checked in by kjdon, 20 years ago

tidied up the style stuff - now uses css. pageHead is now defined by style, with pageTitle and pageStyle in each page. got rid of the attribute sets and colors in style - uses css instead.

  • 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="pageTitle">
15 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21 <xsl:template match="pageResponse">
22 <xsl:call-template name="greenstonePageBanner"/>
23 <xsl:apply-templates select="collectionList"/>
24 <xsl:apply-templates select="serviceClusterList"/>
25 </xsl:template>
26
27 <xsl:template match="collectionList">
28 <xsl:for-each select="collection">
29 <p>
30 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
31 <img width="150" border="1">
32 <xsl:attribute name="src">
33 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/>
34 </xsl:attribute>
35 <xsl:attribute name="alt">
36 <xsl:value-of select="displayItem[@name='name']"/>
37 </xsl:attribute>
38 </img>
39 </a>
40 </p>
41 </xsl:for-each>
42 <xsl:call-template name="dividerBar"/>
43 </xsl:template>
44
45 <xsl:template match="serviceClusterList">
46 <xsl:for-each select="serviceCluster">
47 <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>
48 </xsl:for-each>
49 <xsl:call-template name="dividerBar"/>
50 </xsl:template>
51
52</xsl:stylesheet>
53
54
Note: See TracBrowser for help on using the repository browser.