source: trunk/gsdl3/web/interfaces/default/transform/classifier.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: 2.3 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, 'gsdl')"/>
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:call-template name="standardPageBanner">
26 <xsl:with-param name="collName" select="$collName"/>
27 </xsl:call-template>
28 <p/>
29 <xsl:call-template name="navigationBar">
30 <xsl:with-param name="collName" select="$collName"/>
31 </xsl:call-template>
32 <p/>
33 <xsl:apply-templates select="service/classifierList">
34 <xsl:with-param name="collName" select="$collName"/>
35 <xsl:with-param name="serviceName" select="$serviceName"/>
36 </xsl:apply-templates>
37 <p/>
38 <xsl:apply-templates select="classifier">
39 <xsl:with-param name="collName" select="$collName"/>
40 <xsl:with-param name="serviceName" select="$serviceName"/>
41 </xsl:apply-templates>
42 </xsl:template>
43
44 <xsl:template match="classifierList">
45 <xsl:param name="collName"/>
46 <xsl:param name="serviceName"/>
47 <xsl:variable name="selected" select="/page/pageResponse/classifier/@name"/>
48 <table width='100%'><tr>
49 <xsl:for-each select="classifier">
50 <xsl:choose>
51 <xsl:when test="@name=$selected">
52 <td align='center'><font size="+1"><xsl:value-of select="displayItem[@name='name']"/></font></td>
53 </xsl:when>
54 <xsl:otherwise>
55 <td align='center'><a href="{$library_name}?a=b&amp;rt=r&amp;s={$serviceName}&amp;c={$collName}&amp;cl={@name}"><font size="+1"><xsl:value-of select="displayItem[@name='name']"/></font></a></td></xsl:otherwise></xsl:choose>
56 </xsl:for-each>
57 </tr></table>
58 </xsl:template>
59
60</xsl:stylesheet>
61
62
63
64
65
66
Note: See TracBrowser for help on using the repository browser.