source: greenstone3/trunk/web/interfaces/gs2/transform/classifier.xsl@ 18318

Last change on this file since 18318 was 18318, checked in by kjdon, 15 years ago

made the indentation nice

  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
RevLine 
[7831]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
[17019]9 <!-- style includes global params interface_name, library_name -->
[7831]10 <xsl:include href="style.xsl"/>
11 <xsl:include href="classifiertools.xsl"/>
12
[17019]13 <xsl:output method="html"/>
[7831]14
[17019]15 <!-- the main page layout template is here -->
16 <xsl:template match="page">
17 <html>
[18318]18 <head>
19 <title>
20 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
21 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
22 </title>
23 <xsl:call-template name="globalStyle"/>
24 <xsl:call-template name="pageStyle"/>
25 </head>
[17019]26 <body class="bgimage">
27 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
28 <div id="page">
[18318]29 <xsl:apply-templates select="pageResponse"/>
30 <xsl:call-template name="greenstoneFooter"/>
[17019]31 </div>
32 </body>
33 </html>
34 </xsl:template>
35
[8532]36 <xsl:template name="pageTitle">
[16977]37 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
[7831]38 </xsl:template>
39
[8532]40 <!-- page specific style goes here -->
41 <xsl:template name="pageStyle"/>
42
[7831]43 <xsl:template match="pageResponse">
44 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
45 <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
46 <xsl:variable name="cl" select="/page/pageRequest/paramList/param[@name='cl']/@value"/>
47 <xsl:variable name="clTop">
48 <xsl:choose>
49 <xsl:when test="contains($cl, '.')"><xsl:value-of select="substring-before($cl, '.')"/></xsl:when>
50 <xsl:otherwise>
51 <xsl:value-of select="$cl"/>
52 </xsl:otherwise>
53 </xsl:choose>
54 </xsl:variable>
[18318]55 <xsl:call-template name="standardPageBanner">
56 <xsl:with-param name="collName" select="$collName"/>
57 <xsl:with-param name="pageType">browse</xsl:with-param>
58 <xsl:with-param name="clTop" select="$clTop"/>
59 </xsl:call-template>
60 <xsl:call-template name="navigationBar">
61 <xsl:with-param name="collName" select="$collName"/>
62 <xsl:with-param name="clTop" select="$clTop"/>
63 </xsl:call-template>
64 <div class="document">
[7831]65 <xsl:apply-templates select="classifier">
66 <xsl:with-param name="collName" select="$collName"/>
67 <xsl:with-param name="serviceName" select="$serviceName"/>
68 </xsl:apply-templates>
[18318]69 </div>
[7831]70 </xsl:template>
71
72
73</xsl:stylesheet>
74
75
76
77
78
79
Note: See TracBrowser for help on using the repository browser.