source: greenstone3/trunk/web/sites/localsite/collect/gberg/transform/about.xsl@ 18461

Last change on this file since 18461 was 18461, checked in by max, 15 years ago

Fixed some stuff to display properly using the current css file.

  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 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 <!-- the main page layout template is here -->
15 <xsl:template match="page">
16
17 <xsl:choose>
18 <!-- if we are using the classic GS2 look and feel use this template otherwise use the default GS3 look and feel template -->
19 <xsl:when test="$interface_name = 'gs2'">
20 <html>
21 <head>
22 <title>
23 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
24 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
25 </title>
26 <xsl:call-template name="globalStyle"/>
27 <xsl:call-template name="pageStyle"/>
28 </head>
29 <body class="bgimage">
30 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
31 <div id="page">
32 <xsl:apply-templates select="pageResponse"/>
33 <xsl:call-template name="greenstoneFooter"/>
34 </div>
35 </body>
36 </html>
37 </xsl:when>
38
39 <xsl:otherwise>
40 <html>
41 <head>
42 <title>
43 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
44 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
45 </title>
46 <xsl:call-template name="globalStyle"/>
47 <xsl:call-template name="pageStyle"/>
48 </head>
49 <body>
50 <div id="page-wrapper">
51 <xsl:call-template name="response" />
52 <xsl:call-template name="greenstoneFooter"/>
53 </div>
54 </body>
55 </html>
56 </xsl:otherwise>
57 </xsl:choose>
58 </xsl:template>
59
60
61
62
63 <xsl:template name="pageTitle">
64 Sample XML Texts Collection
65 </xsl:template>
66
67 <!-- page specific style goes here -->
68 <xsl:template name="pageStyle"/>
69
70 <xsl:template match="pageResponse">
71 <xsl:apply-templates select="collection"/>
72 </xsl:template>
73
74 <xsl:template match="collection">
75 <xsl:variable name="collName" select="@name"/>
76 <xsl:call-template name="standardPageBanner">
77 <xsl:with-param name="collName" select="$collName"/>
78 <xsl:with-param name="pageType">about</xsl:with-param>
79 </xsl:call-template>
80 <xsl:call-template name="navigationBar">
81 <xsl:with-param name="collName" select="$collName"/>
82 </xsl:call-template>
83 <p/><xsl:value-of select="displayItem[@name='description']" disable-output-escaping='yes'/>
84 <p/><xsl:apply-templates select="documentList">
85 <xsl:with-param name="collName" select="@name"/>
86 </xsl:apply-templates>
87 </xsl:template>
88
89 <xsl:template match="documentList">
90 <xsl:param name="collName"/>
91 <ul>
92 <xsl:for-each select="document">
93 <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>
94 </xsl:for-each>
95 </ul>
96 </xsl:template>
97</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.