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 2015 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/language-elements-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=
"head-navigation" />
45 <h2><xsl:apply-templates select=
"title" /></h2>
47 <xsl:apply-templates select=
"top" />
50 <div class=
"p" style=
"text-align:center;"><b>Alphabetical list of namespaces
</b></div>
51 <div class=
"p" style=
"text-align:center;">
52 <xsl:for-each select=
"/book/external/toc/namespaces//namespace">
53 <xsl:sort select=
"@name" />
54 <xsl:variable name=
"ns"><xsl:value-of select=
"@name" /></xsl:variable>
55 <xsl:if test=
"position() != 1"><xsl:text> </xsl:text></xsl:if>
56 <span class=
"horizontal-item">
57 <xsl:element name=
"a">
58 <xsl:attribute name=
"class">discrete
</xsl:attribute>
59 <xsl:attribute name=
"href">
61 <xsl:call-template name=
"namespace-to-a-id">
62 <xsl:with-param name=
"name"><xsl:value-of select=
"$ns" /></xsl:with-param>
65 <xsl:call-template name=
"format-namespace-name">
66 <xsl:with-param name=
"name"><xsl:value-of select=
"$ns" /></xsl:with-param>
74 <xsl:for-each select=
"/book/external/toc/namespaces//namespace">
75 <xsl:sort select=
"@name" />
76 <xsl:variable name=
"ns"><xsl:value-of select=
"@name" /></xsl:variable>
78 <xsl:element name=
"a">
79 <xsl:attribute name=
"name">
81 <xsl:call-template name=
"namespace-to-a-id">
82 <xsl:with-param name=
"name"><xsl:value-of select=
"$ns" /></xsl:with-param>
85 <xsl:call-template name=
"name-to-linked-namespace">
86 <xsl:with-param name=
"name"><xsl:value-of select=
"$ns" /></xsl:with-param>
90 <xsl:element name=
"table">
91 <xsl:attribute name=
"class">loose
</xsl:attribute>
92 <xsl:element name=
"tr">
93 <xsl:element name=
"th">Name
</xsl:element>
94 <xsl:element name=
"th">Summary
</xsl:element>
96 <xsl:for-each select=
"/book/external/toc/bindings/binding[@namespace = $ns]">
97 <xsl:sort select=
"@name" />
98 <xsl:variable name=
"ext"><xsl:apply-templates mode=
"extension-of-binding" select=
"ancestor::book[1]"/></xsl:variable>
99 <xsl:variable name=
"kind"><xsl:apply-templates mode=
"kind-of-binding" select=
"."/></xsl:variable>
100 <xsl:element name=
"tr">
101 <xsl:element name=
"td">
102 <xsl:element name=
"span">
103 <xsl:attribute name=
"class">weak
</xsl:attribute>
104 <xsl:call-template name=
"format-namespace-name"><xsl:with-param name=
"name"><xsl:value-of select=
"$ns" /></xsl:with-param></xsl:call-template><xsl:text>^
</xsl:text>
106 <xsl:apply-templates mode=
"placed-binding" select=
"." />
107 <xsl:element name=
"span">
108 <xsl:attribute name=
"class">weak
</xsl:attribute>
109 <xsl:text>$
</xsl:text>
112 <xsl:element name=
"td">
113 <xsl:apply-templates select=
"summary"/>
115 </xsl:element> <!-- tr -->
117 </xsl:element> <!-- table -->
119 <xsl:call-template name=
"SF-placeholder" />