Doc: Initiate transition to next generation documentation
[shapes.git] / doc / parts / bindings / formats / html.xsl
blob334b08b22c8f14e19bdd8569ddb5f582c5550106
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
21 version="2.0"
22 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
23 xmlns="http://www.w3.org/1999/xhtml"
25 <xsl:output method="xml" indent="no"
26 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
27 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
30 <xsl:include href="../../formats/html.xsl" />
31 <xsl:include href="../../formats/bindings-html.xsl" />
32 <xsl:include href="../../formats/examplecode-html.xsl" />
33 <xsl:include href="../../formats/language-elements-html.xsl" />
35 <xsl:template match="/book">
36 <html>
37 <head>
38 <title><xsl:apply-templates select="title" /></title>
39 <xsl:element name="link">
40 <xsl:attribute name="rel">stylesheet</xsl:attribute>
41 <xsl:attribute name="href"><xsl:value-of select="/book/base/@href" />shapes.css</xsl:attribute>
42 </xsl:element>
43 </head>
44 <body>
45 <xsl:call-template name="head-navigation" />
46 <h2><xsl:apply-templates select="title" /></h2>
47 <hr class="thick"/>
48 <xsl:apply-templates select="top" />
49 <div class="p">
50 <b>Sections:</b>
51 <xsl:for-each select="section">
52   
53 <xsl:element name="a">
54 <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>
55 <xsl:apply-templates select="title" />
56 </xsl:element>
57 </xsl:for-each>
58 </div>
60 <hr class="thin"/>
61 <div class="p" style="text-align:center;"><b>Alphabetical list</b></div>
62 <div class="p" style="text-align:center;">
63 <xsl:for-each select="/book/section/system-binding[@identifier]">
64 <xsl:sort select="@identifier" />
65 <xsl:call-template name="name-to-linked-value">
66 <xsl:with-param name="name"><xsl:value-of select="@identifier" /></xsl:with-param>
67 </xsl:call-template>
68   
69 </xsl:for-each>
70 </div>
71 <hr class="thin"/>
73 <xsl:for-each select="section">
74 <h3>
75 <xsl:element name="a">
76 <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>
77 <xsl:apply-templates select="title" />
78 </xsl:element>
79 </h3>
80 <xsl:apply-templates select="top" />
81 <div class="p" style="text-align:center;">
82 <xsl:for-each select="system-binding[@identifier]">
83 <xsl:sort select="@identifier" />
84 <xsl:call-template name="name-to-linked-value">
85 <xsl:with-param name="name"><xsl:value-of select="@identifier" /></xsl:with-param>
86 </xsl:call-template>
87   
88 </xsl:for-each>
89 </div>
90 <xsl:apply-templates select="system-binding" />
91 </xsl:for-each>
92 <xsl:call-template name="SF-placeholder" />
93 </body>
94 </html>
95 </xsl:template>
97 </xsl:stylesheet>