Ammend merge: Misc stuff
[shapes.git] / doc / parts / state-types / formats / html.xsl
blob00cfe7375b08629fc27bbdebcff1a54f7e8ead1f
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" />
34 <xsl:include href="../../interactive/formats/notation-html.xsl" />
36 <xsl:template match="/book">
37 <html>
38 <head>
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>
43 </xsl:element>
44 </head>
45 <body>
46 <xsl:call-template name="head-navigation" />
47 <h2><xsl:apply-templates select="title" /></h2>
48 <hr class="thick"/>
49 <xsl:apply-templates select="top" />
50 <div class="p">
51 <b>Sections:</b>
52 <xsl:for-each select="section">
53   
54 <xsl:element name="a">
55 <xsl:attribute name="href">#<xsl:value-of select="@id" /></xsl:attribute>
56 <xsl:apply-templates select="title" />
57 </xsl:element>
58 </xsl:for-each>
59 </div>
61 <hr class="thin"/>
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>
68 </xsl:call-template>
69   
70 </xsl:for-each>
71 </div>
72 <hr class="thin"/>
74 <xsl:for-each select="section">
75 <h3>
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" />
79 </xsl:element>
80 </h3>
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>
87 </xsl:call-template>
88   
89 </xsl:for-each>
90 </div>
91 <xsl:apply-templates select="core-state-type" />
92 </xsl:for-each>
94 <xsl:call-template name="SF-placeholder" />
95 </body>
96 </html>
97 </xsl:template>
99 </xsl:stylesheet>