source: trunk/gsdl-documentation/manuals/processing/xml-to-one-html.xsl@ 13632

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

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <xsl:include href="common.xsl"/>
10 <xsl:include href="crossref.xsl"/>
11 <xsl:output method="html"/>
12
13 <xsl:template match="Manual">
14 <html>
15 <head>
16 <title><xsl:value-of 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">
21 <tr><td>
22 <h2><xsl:apply-templates select="Heading/Text"/></h2>
23 <h1><xsl:apply-templates select="Title/Text"/></h1>
24 <xsl:apply-templates select="Author"/>
25 <xsl:apply-templates select="Affiliation"/>
26 <xsl:apply-templates select="Text"/>
27 <xsl:apply-templates select="Comment"/>
28 <xsl:call-template name="version_and_date"/>
29 <br/>
30 <xsl:apply-templates select="Section" mode="preface"/>
31 <h3>Contents</h3>
32 <a name="index"/>
33 <dl>
34 <xsl:apply-templates select="Chapter[not(@hidden)]|Appendix|Bibliography" mode="index"/>
35 </dl>
36 <xsl:apply-templates select="Chapter"/>
37 <xsl:apply-templates select="Appendix"/>
38 <xsl:apply-templates select="Bibliography"/>
39 <xsl:if test="FootnoteList"><hr/><xsl:apply-templates select="FootnoteList"/></xsl:if>
40 </td></tr></table>
41 </body>
42 </html>
43</xsl:template>
44</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.