[13632] | 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"/> <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/> </xsl:if><xsl:apply-templates select="Title/Text"/></h1>
|
---|
| 25 |
|
---|
| 26 | <xsl:if test="Content/Section">
|
---|
| 27 | <h3>Contents</h3>
|
---|
| 28 | <xsl:apply-templates select="Content/Section" mode="index"/>
|
---|
| 29 | </xsl:if>
|
---|
| 30 |
|
---|
| 31 | <xsl:apply-templates select="Content/*"/>
|
---|
| 32 |
|
---|
| 33 | <xsl:if test="descendant::FootnoteRef and not(name()='FootnoteList')">
|
---|
| 34 | <hr/>
|
---|
| 35 | <xsl:for-each select="descendant::FootnoteRef">
|
---|
| 36 | <xsl:variable name="fnrefname"><xsl:value-of select="@id"/></xsl:variable>
|
---|
| 37 | <xsl:variable name="number"><xsl:number count="FootnoteRef" level="any" from="Chapter"/></xsl:variable>
|
---|
| 38 | <xsl:for-each select="/Manual/FootnoteList/Footnote[@id=$fnrefname]">
|
---|
| 39 | <!--<a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:number/>]</a> -->
|
---|
| 40 | <a name="fn{@id}"/><a href="#fnref{@id}">[<xsl:value-of select="$number"/>]</a>
|
---|
| 41 | <xsl:apply-templates/>
|
---|
| 42 | <br/>
|
---|
| 43 | </xsl:for-each>
|
---|
| 44 | </xsl:for-each>
|
---|
| 45 | </xsl:if>
|
---|
| 46 | </td></tr></table>
|
---|
| 47 | </body>
|
---|
| 48 | </html>
|
---|
| 49 | </xsl:template>
|
---|
| 50 | </xsl:stylesheet>
|
---|