source: trunk/gsdl3/web/sites/localsite/collect/gberg/transform/about.xsl@ 8538

Last change on this file since 8538 was 8538, checked in by kjdon, 19 years ago

fixed to work with the new pageHead and pageTitle templates

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 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
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageTitle">
15 Sample XML Texts Collection
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21 <xsl:template match="pageResponse">
22 <xsl:apply-templates select="collection"/>
23 </xsl:template>
24
25 <xsl:template match="collection">
26 <xsl:variable name="collName" select="@name"/>
27 <xsl:call-template name="standardPageBanner">
28 <xsl:with-param name="collName" select="$collName"/>
29 <xsl:with-param name="pageType">about</xsl:with-param>
30 </xsl:call-template>
31 <xsl:call-template name="navigationBar">
32 <xsl:with-param name="collName" select="$collName"/>
33 </xsl:call-template>
34 <p/><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/>
35 <p/><xsl:apply-templates select="documentList">
36 <xsl:with-param name="collName" select="@name"/>
37 </xsl:apply-templates>
38 </xsl:template>
39
40 <xsl:template match="documentList">
41 <xsl:param name="collName"/>
42 <ul>
43 <xsl:for-each select="document">
44 <li><a href="{$library_name}?a=xd&amp;sa=toc&amp;sc=full&amp;c={$collName}&amp;d={@name}"><xsl:value-of select="metadataList/metadata[@name='Title']"/></a></li>
45 </xsl:for-each>
46 </ul>
47 </xsl:template>
48</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.