source: trunk/gsdl3/web/interfaces/classic/transform/classifier.xsl@ 8532

Last change on this file since 8532 was 8532, checked in by kjdon, 19 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.9 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 <xsl:include href="style.xsl"/>
10 <xsl:include href="classifiertools.xsl"/>
11
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageTitle">
15 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/>
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21
22 <xsl:template match="pageResponse">
23 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
24 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
25 <xsl:variable name="cl" select="/page/pageRequest/paramList/param[@name='cl']/@value"/>
26 <xsl:variable name="clTop">
27 <xsl:choose>
28 <xsl:when test="contains($cl, '.')"><xsl:value-of select="substring-before($cl, '.')"/></xsl:when>
29 <xsl:otherwise>
30 <xsl:value-of select="$cl"/>
31 </xsl:otherwise>
32 </xsl:choose>
33 </xsl:variable>
34 <center>
35 <xsl:call-template name="standardPageBanner">
36 <xsl:with-param name="collName" select="$collName"/>
37 <xsl:with-param name="pageType">browse</xsl:with-param>
38 <xsl:with-param name="clTop" select="$clTop"/>
39 </xsl:call-template>
40 <xsl:call-template name="navigationBar">
41 <xsl:with-param name="collName" select="$collName"/>
42 <xsl:with-param name="clTop" select="$clTop"/>
43 </xsl:call-template>
44 <p/>
45 <xsl:apply-templates select="classifier">
46 <xsl:with-param name="collName" select="$collName"/>
47 <xsl:with-param name="serviceName" select="$serviceName"/>
48 </xsl:apply-templates>
49 </center>
50 </xsl:template>
51
52
53</xsl:stylesheet>
54
55
56
57
58
59
Note: See TracBrowser for help on using the repository browser.