Doc: Shifting down HTML heading tags by one.
[shapes.git] / doc / parts / bindings / formats / html.xsl
blob1fcf492164d73394e9236409b94f5bba200623a2
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- This file is part of Shapes. -->
4 <!-- -->
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. -->
9 <!-- -->
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. -->
14 <!-- -->
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/>. -->
17 <!-- -->
18 <!-- Copyright 2008 Henrik Tidefelt -->
20 <xsl:stylesheet version="2.0"
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
22 <xsl:output method="xml" indent="no" />
24 <xsl:include href="../../formats/html.xsl" />
25 <xsl:include href="../../formats/examplecode-html.xsl" />
26 <xsl:include href="../../formats/language-elements-html.xsl" />
28 <xsl:template match="/book">
29 <html>
30 <head>
31 <title><xsl:apply-templates select="title" /></title>
32 <xsl:element name="link">
33 <xsl:attribute name="rel">stylesheet</xsl:attribute>
34 <xsl:attribute name="href"><xsl:value-of select="/book/base/@href" />shapes.css</xsl:attribute>
35 </xsl:element>
36 </head>
37 <body>
38 <xsl:call-template name="head-navigation" />
39 <h2><xsl:apply-templates select="title" /></h2>
40 <hr class="thick"/>
41 <xsl:apply-templates select="top" />
42 <p><b>Sections:</b>
43 <xsl:for-each select="section">
44   
45 <xsl:element name="a">
46 <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>
47 <xsl:apply-templates select="title" />
48 </xsl:element>
49 </xsl:for-each>
50 </p>
52 <hr class="thin"/>
53 <p class="center"><b>Alphabetical list</b></p>
54 <p class="center">
55 <xsl:for-each select="/book/section/system-binding[@identifier]">
56 <xsl:sort select="@identifier" />
57 <xsl:call-template name="name-to-linked-binding">
58 <xsl:with-param name="name"><xsl:value-of select="@identifier" /></xsl:with-param>
59 </xsl:call-template>
60   
61 </xsl:for-each>
62 </p>
63 <hr class="thin"/>
65 <xsl:for-each select="section">
66 <h3>
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" />
70 </xsl:element>
71 </h3>
72 <xsl:apply-templates select="top" />
73 <p class="center">
74 <xsl:for-each select="system-binding[@identifier]">
75 <xsl:sort select="@identifier" />
76 <xsl:call-template name="name-to-linked-binding">
77 <xsl:with-param name="name"><xsl:value-of select="@identifier" /></xsl:with-param>
78 </xsl:call-template>
79   
80 </xsl:for-each>
81 </p>
82 <xsl:apply-templates select="system-binding" />
83 </xsl:for-each>
84 </body>
85 </html>
86 </xsl:template>
88 </xsl:stylesheet>