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=
"../../syntax/formats/syntax-html.xsl" />
34 <xsl:template match=
"/book">
37 <title><xsl:apply-templates select=
"title" /></title>
38 <xsl:element name=
"link">
39 <xsl:attribute name=
"rel">stylesheet
</xsl:attribute>
40 <xsl:attribute name=
"href"><xsl:value-of select=
"/book/base/@href" />shapes.css
</xsl:attribute>
44 <xsl:call-template name=
"version-header" />
45 <h1><xsl:apply-templates select=
"title" /></h1>
47 <xsl:apply-templates select=
"top" />
48 <xsl:for-each select=
"section">
49 <h2><xsl:apply-templates select=
"title" /></h2>
50 <xsl:apply-templates select=
"top" />
51 <xsl:apply-templates select=
"body" />
52 <xsl:for-each select=
"section">
53 <h3><xsl:apply-templates select=
"title" /></h3>
54 <xsl:apply-templates select=
"top" />
55 <xsl:apply-templates select=
"body" />
56 <xsl:for-each select=
"section">
57 <h4><xsl:apply-templates select=
"title" /></h4>
58 <xsl:apply-templates select=
"top" />
59 <xsl:apply-templates select=
"body" />
63 <xsl:call-template name=
"SF-placeholder" />
68 <xsl:template match=
"index-of-books">
70 <xsl:apply-templates select=
"/book/external/book | /book/external/man | /book/external/group" />
74 <xsl:template match=
"external//book">
76 <xsl:element name=
"a">
77 <xsl:attribute name=
"href"><xsl:value-of select=
"/book/base/@href" /><xsl:apply-templates select=
"meta-selflink" /></xsl:attribute>
78 <b><xsl:apply-templates select=
"title" /></b>
80 <xsl:apply-templates select=
"description" />
84 <xsl:template match=
"external//man">
86 <xsl:element name=
"a">
87 <xsl:attribute name=
"href"><xsl:value-of select=
"/book/base/@href" /><xsl:apply-templates select=
"manhead/meta-selflink" /></xsl:attribute>
88 <b><xsl:apply-templates select=
"manhead/center-header" /></b>
90 <xsl:apply-templates select=
"manhead/description" />
94 <xsl:template match=
"external//group">
96 <b><xsl:apply-templates select=
"title" /></b>
97 <xsl:apply-templates select=
"description" />
99 <xsl:apply-templates select=
"book | man | group" />