source: documentation/trunk/manuals/processing/xml-to-many-html.xsl@ 14835

Last change on this file since 14835 was 14099, checked in by lh92, 17 years ago

Added the copyright information

  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:java="http://xml.apache.org/xslt/java"
4 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
5 extension-element-prefixes="java util"
6 exclude-result-prefixes="java util">
7
8 <xsl:include href="common.xsl"/>
9 <xsl:include href="crossref-inter.xsl"/>
10
11 <xsl:output method="html"/>
12
13 <xsl:template match="Chapter|FootnoteList">
14 <html>
15 <head>
16 <title><xsl:apply-templates select="Title/Text"/></title>
17 <link rel="stylesheet" href="../../style.css" type="text/css"/>
18 </head>
19 <body>
20 <table width="90%" border="0" align="center"><tr><td>
21 <h2><xsl:value-of select="/Manual/Heading/Text"/>&#160;<xsl:value-of select="/Manual/Title/Text"/></h2>
22 <a name="Chapter_{@id}"/><h1>
23 <xsl:if test="not(starts-with(@id, 'appendix') or starts-with(@id, 'biblio'))">
24 Chapter <xsl:number/>&#160;</xsl:if><xsl:apply-templates select="Title/Text"/></h1>
25
26 <xsl:apply-templates select="/Manual/SupplementaryText">
27 <xsl:with-param name="manual_id" select="/Manual/@id"/>
28 <xsl:with-param name="manual_lang" select="/Manual/@lang"/>
29 </xsl:apply-templates>
30
31 <xsl:if test="Content/Section">
32 <h3>Contents</h3>
33 <xsl:apply-templates select="Content/Section" mode="index"/>
34 </xsl:if>
35
36 <xsl:apply-templates select="Content/*"/>
37
38 <xsl:if test="descendant::FootnoteRef and not(name()='FootnoteList')">
39 <hr/>
40 <xsl:for-each select="descendant::FootnoteRef">
41 <xsl:variable name="fnrefname"><xsl:value-of select="@id"/></xsl:variable>
42 <xsl:variable name="number"><xsl:number count="FootnoteRef" level="any" from="Chapter"/></xsl:variable>
43 <xsl:for-each select="/Manual/FootnoteList/Footnote[@id=$fnrefname]">
44 <!--<a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:number/>]</a>&#160;-->
45 <p><a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="$number"/>]</a>
46 <xsl:apply-templates/></p>
47 </xsl:for-each>
48 </xsl:for-each>
49 </xsl:if>
50 </td></tr>
51 </table>
52
53 <hr/>
54 <div style="text-align:center;"><xsl:apply-templates select="/Manual/Section[@id='copyright']/Content"/></div>
55 </body>
56 </html>
57 </xsl:template>
58</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.