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

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

now uses <div> to make changing styles easier

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 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 <xsl:include href="help-common.xsl"/>
12 <xsl:include href="query-common.xsl"/>
13 <xsl:include href="service-params.xsl"/>
14 <xsl:output method="html"/>
15
16 <xsl:template name="pageTitle">
17 <xsl:value-of select="/page/pageResponse/collection/displayItem[@name='name']"/>
18 </xsl:template>
19
20 <!-- page specific style goes here -->
21 <xsl:template name="pageStyle"/>
22
23
24 <xsl:template match="pageResponse">
25 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
26 <xsl:apply-templates select="collection"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
27
28 </xsl:template>
29
30 <xsl:template match="collection">
31 <xsl:param name="collName"/>
32 <xsl:call-template name="standardPageBanner">
33 <xsl:with-param name="collName" select="$collName"/>
34 <xsl:with-param name="pageType">about</xsl:with-param>
35 </xsl:call-template>
36 <xsl:call-template name="navigationBar">
37 <xsl:with-param name="collName" select="$collName"/>
38 </xsl:call-template>
39 <div class="document">
40 <xsl:if test="/page/pageRequest/paramList/param[@name='ct']/@value = 0">
41 <xsl:apply-templates select="serviceList/service[@name='TextQuery']">
42 <xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
43 <xsl:call-template name="dividerBar"/>
44 </xsl:if>
45 </div>
46 <div>
47 <xsl:if test="displayItem[@name='description']">
48 <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.aboutcoll')"/></h3>
49 <p><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/></p>
50 </xsl:if>
51 <xsl:apply-templates select="." mode="simplehelp"/>
52 </div>
53 </xsl:template>
54
55</xsl:stylesheet>
56
Note: See TracBrowser for help on using the repository browser.