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 -->
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">
31 <title><xsl:value-of 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>
38 <xsl:call-template name=
"head-navigation" />
39 <h2><xsl:value-of select=
"title" /></h2>
41 <xsl:apply-templates select=
"top" />
43 <xsl:for-each select=
"section">
45 <xsl:element name=
"a">
46 <xsl:attribute name=
"href">#
<xsl:value-of select=
"@id" /></xsl:attribute>
47 <xsl:value-of select=
"title" />
53 <p class=
"center"><b>Alphabetical list
</b></p>
55 <xsl:for-each select=
"/book/section/system-state[@identifier]">
56 <xsl:sort select=
"@identifier" />
57 <xsl:call-template name=
"name-to-linked-state">
58 <xsl:with-param name=
"name"><xsl:value-of select=
"@identifier" /></xsl:with-param>
65 <xsl:for-each select=
"section">
67 <xsl:element name=
"a">
68 <xsl:attribute name=
"name"><xsl:value-of select=
"@id" /></xsl:attribute>
69 <xsl:value-of select=
"title" />
72 <xsl:apply-templates select=
"top" />
74 <xsl:for-each select=
"system-state[@identifier]">
75 <xsl:sort select=
"@identifier" />
76 <xsl:call-template name=
"name-to-linked-state">
77 <xsl:with-param name=
"name"><xsl:value-of select=
"@identifier" /></xsl:with-param>
82 <xsl:apply-templates select=
"system-state" />