1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <!-- This file is part of Shapes. -->
5 <!-- Shapes is free software: you can redistribute it and/or modify -->
6 <!-- it under the terms of the GNU General Public License as published by -->
7 <!-- the Free Software Foundation, either version 3 of the License, or -->
8 <!-- any later version. -->
10 <!-- Shapes is distributed in the hope that it will be useful, -->
11 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
12 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
13 <!-- GNU General Public License for more details. -->
15 <!-- You should have received a copy of the GNU General Public License -->
16 <!-- along with Shapes. If not, see <http://www.gnu.org/licenses/>. -->
18 <!-- Copyright 2008 Henrik Tidefelt -->
22 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
23 xmlns=
"http://www.w3.org/1999/xhtml"
26 <xsl:template match=
"/book">
29 <title><xsl:apply-templates select=
"title" /></title>
30 <xsl:element name=
"link">
31 <xsl:attribute name=
"rel">stylesheet
</xsl:attribute>
32 <xsl:attribute name=
"href"><xsl:value-of select=
"/book/base/@href" />shapes.css
</xsl:attribute>
36 <xsl:if test=
"under-development"><xsl:call-template name=
"under-development-banner" /></xsl:if>
37 <xsl:call-template name=
"head-navigation" />
38 <xsl:if test=
"prelude">
39 <h3>[standard prelude]
</h3>
41 <h2><xsl:apply-templates select=
"title" /></h2>
43 <xsl:apply-templates select=
"top" />
45 <xsl:if test=
"section">
48 <xsl:for-each select=
"section">
50 <xsl:element name=
"a">
51 <xsl:attribute name=
"href">#
<xsl:call-template name=
"id-to-anchor-name"><xsl:with-param name=
"id"><xsl:value-of select=
"@id" /></xsl:with-param></xsl:call-template></xsl:attribute>
52 <xsl:apply-templates select=
"title" />
58 <xsl:if test=
"body and not(section)">
59 <xsl:apply-templates select=
"body" />
62 <xsl:for-each select=
"section">
67 <xsl:element name=
"a">
68 <xsl:attribute name=
"name"><xsl:call-template name=
"id-to-anchor-name"><xsl:with-param name=
"id"><xsl:value-of select=
"@id" /></xsl:with-param></xsl:call-template></xsl:attribute>
69 <xsl:apply-templates select=
"title" />
74 <h3><xsl:apply-templates select=
"title" /></h3>
77 <xsl:apply-templates select=
"top" />
78 <xsl:apply-templates select=
"body" />
79 <xsl:for-each select=
"section">
83 <xsl:element name=
"a">
84 <xsl:attribute name=
"name"><xsl:call-template name=
"id-to-anchor-name"><xsl:with-param name=
"id"><xsl:value-of select=
"@id" /></xsl:with-param></xsl:call-template></xsl:attribute>
85 <xsl:apply-templates select=
"title" />
90 <h4><xsl:apply-templates select=
"title" /></h4>
93 <xsl:apply-templates select=
"top" />
94 <xsl:apply-templates select=
"body" />
95 <xsl:for-each select=
"section">
99 <xsl:element name=
"a">
100 <xsl:attribute name=
"name"><xsl:call-template name=
"id-to-anchor-name"><xsl:with-param name=
"id"><xsl:value-of select=
"@id" /></xsl:with-param></xsl:call-template></xsl:attribute>
101 <xsl:apply-templates select=
"title" />
106 <h5><xsl:apply-templates select=
"title" /></h5>
109 <xsl:apply-templates select=
"top" />
110 <xsl:apply-templates select=
"body" />
114 <xsl:call-template name=
"SF-placeholder" />
117 <!-- Finally, a newline at end of file. -->