source: trunk/gsdl3/web/sites/localsite/collect/gberg/transform/document-content.xsl@ 5980

Last change on this file since 5980 was 5980, checked in by kjdon, 20 years ago

fixed an error in css location

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 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="pageHead">
15 <head>
16 <title>
17 <xsl:value-of select="/page/pageResponse/documentNode/metadataList/metadata[@name='root_Title']"/>
18 </title>
19 <link type="text/css" href="sites/localsite/collect/gberg/transform/darwin.css" rel="stylesheet"/>
20 </head>
21 </xsl:template>
22
23 <xsl:template match="pageResponse">
24 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
25 <xsl:call-template name="standardPageBanner">
26 <xsl:with-param name="collName" select="$collName"/>
27 </xsl:call-template>
28 <xsl:call-template name="navigationBar">
29 <xsl:with-param name="collName" select="$collName"/>
30 </xsl:call-template>
31 <!-- display the document -->
32 <xsl:apply-templates select="documentNode">
33 <xsl:with-param name="collName" select="$collName"/>
34 </xsl:apply-templates>
35 <xsl:call-template name="dividerBar"/>
36 </xsl:template>
37
38 <xsl:template match="documentNode">
39 <xsl:param name="collName"/>
40 <xsl:variable name="docname"><xsl:choose><xsl:when test="contains(@nodeID, '.')"><xsl:value-of select="substring-before(@nodeID, '.')"/></xsl:when><xsl:otherwise><xsl:value-of select="@nodeID"/></xsl:otherwise></xsl:choose></xsl:variable>
41 <h1>
42 <center>
43 <a href="{$library_name}?a=xd&amp;sa=toc&amp;c={$collName}&amp;d={$docname}"><xsl:attribute name="title">Go to the document contents</xsl:attribute><xsl:value-of select="metadataList/metadata[@name='root_Title']"/>&#160;</a>
44 </center>
45 </h1>
46 <xsl:apply-templates select="nodeContent/*"/>
47 </xsl:template>
48
49 <xsl:template match="gutblurb | markupblurb | endmarkupblurb | endgutblurb">
50 </xsl:template>
51
52 <xsl:template match="gutbook | book | frontmatter | bookbody | backmatter | titlepage| htitlepage | toc | dedication | preface | introduction | chapter | part | chapheader | index | appendix | glossary">
53 <xsl:copy>
54 <xsl:copy-of select="@*"/>
55 <xsl:apply-templates/>
56 </xsl:copy>
57 </xsl:template>
58
59<!-- dont seem to be able to apply styles to title tags - cos they are special to html. so we rename title to title1-->
60 <xsl:template match="title">
61 <title1>
62 <xsl:apply-templates/>
63 </title1>
64 </xsl:template>
65
66 <xsl:template match="*">
67 <xsl:copy-of select="."/>
68 </xsl:template>
69
70 <xsl:template match="metadataList">
71 </xsl:template>
72
73</xsl:stylesheet>
74
75
76
77
78
79
80
Note: See TracBrowser for help on using the repository browser.