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

Last change on this file since 13254 was 13254, checked in by shaoqun, 17 years ago

now uses <div> to make changing styles easier

  • 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 <xsl:template match="pageResponse">
22 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
23 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
24 <xsl:variable name="cl" select="/page/pageRequest/paramList/param[@name='cl']/@value"/>
25 <xsl:variable name="clTop">
26 <xsl:choose>
27 <xsl:when test="contains($cl, '.')"><xsl:value-of select="substring-before($cl, '.')"/></xsl:when>
28 <xsl:otherwise>
29 <xsl:value-of select="$cl"/>
30 </xsl:otherwise>
31 </xsl:choose>
32 </xsl:variable>
33 <xsl:call-template name="standardPageBanner">
34 <xsl:with-param name="collName" select="$collName"/>
35 <xsl:with-param name="pageType">browse</xsl:with-param>
36 <xsl:with-param name="clTop" select="$clTop"/>
37 </xsl:call-template>
38 <xsl:call-template name="navigationBar">
39 <xsl:with-param name="collName" select="$collName"/>
40 <xsl:with-param name="clTop" select="$clTop"/>
41 </xsl:call-template>
42 <div class="document">
43 <xsl:apply-templates select="classifier">
44 <xsl:with-param name="collName" select="$collName"/>
45 <xsl:with-param name="serviceName" select="$serviceName"/>
46 </xsl:apply-templates>
47 </div>
48 </xsl:template>
49
50
51</xsl:stylesheet>
52
53
54
55
56
57
Note: See TracBrowser for help on using the repository browser.