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"
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" />
34 <xsl:include href=
"../../interactive/formats/notation-html.xsl" />
36 <xsl:template match=
"/book">
39 <title><xsl:apply-templates select=
"title" /></title>
40 <xsl:element name=
"link">
41 <xsl:attribute name=
"rel">stylesheet
</xsl:attribute>
42 <xsl:attribute name=
"href"><xsl:value-of select=
"/book/base/@href" />shapes.css
</xsl:attribute>
46 <xsl:call-template name=
"head-navigation" />
47 <h2><xsl:apply-templates select=
"title" /></h2>
49 <xsl:apply-templates select=
"top" />
52 <xsl:for-each select=
"section">
54 <xsl:element name=
"a">
55 <xsl:attribute name=
"href">#
<xsl:value-of select=
"@id" /></xsl:attribute>
56 <xsl:apply-templates select=
"title" />
62 <div class=
"p" style=
"text-align:center;"><b>Alphabetical list
</b></div>
63 <div class=
"p" style=
"text-align:center;">
64 <xsl:for-each select=
"/book/section/core-state-type[@name]">
65 <xsl:sort select=
"@name" />
66 <xsl:call-template name=
"name-to-linked-statetype">
67 <xsl:with-param name=
"name"><xsl:value-of select=
"@name" /></xsl:with-param>
74 <xsl:for-each select=
"section">
76 <xsl:element name=
"a">
77 <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>
78 <xsl:apply-templates select=
"title" />
81 <xsl:apply-templates select=
"top" />
82 <div class=
"p" style=
"text-align:center;">
83 <xsl:for-each select=
"core-state-type[@name]">
84 <xsl:sort select=
"@name" />
85 <xsl:call-template name=
"name-to-linked-statetype">
86 <xsl:with-param name=
"name"><xsl:value-of select=
"@name" /></xsl:with-param>
91 <xsl:apply-templates select=
"core-state-type" />
94 <xsl:call-template name=
"SF-placeholder" />