Updating the changelog in the VERSION file, and version_sync
[shapes.git] / doc / parts / namespace-index / formats / html.xsl
blob06bf8aee14e000b06c8d2ac2473e59a69150b192
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 2015 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/language-elements-html.xsl" />
34 <xsl:template match="/book">
35 <html>
36 <head>
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>
41 </xsl:element>
42 </head>
43 <body>
44 <xsl:call-template name="head-navigation" />
45 <h2><xsl:apply-templates select="title" /></h2>
46 <hr class="thick"/>
47 <xsl:apply-templates select="top" />
49 <hr class="thin"/>
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">
60 #ns:
61 <xsl:call-template name="namespace-to-a-id">
62 <xsl:with-param name="name"><xsl:value-of select="$ns" /></xsl:with-param>
63 </xsl:call-template>
64 </xsl:attribute>
65 <xsl:call-template name="format-namespace-name">
66 <xsl:with-param name="name"><xsl:value-of select="$ns" /></xsl:with-param>
67 </xsl:call-template>
68 </xsl:element>
69 </span>
70 </xsl:for-each>
71 </div>
72 <hr class="thin"/>
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>
77 <h4>
78 <xsl:element name="a">
79 <xsl:attribute name="name">
80 ns:
81 <xsl:call-template name="namespace-to-a-id">
82 <xsl:with-param name="name"><xsl:value-of select="$ns" /></xsl:with-param>
83 </xsl:call-template>
84 </xsl:attribute>
85 <xsl:call-template name="name-to-linked-namespace">
86 <xsl:with-param name="name"><xsl:value-of select="$ns" /></xsl:with-param>
87 </xsl:call-template>
88 </xsl:element>
89 </h4>
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>
95 </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>
105 </xsl:element>
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>
110 </xsl:element>
111 </xsl:element>
112 <xsl:element name="td">
113 <xsl:apply-templates select="summary"/>
114 </xsl:element>
115 </xsl:element> <!-- tr -->
116 </xsl:for-each>
117 </xsl:element> <!-- table -->
118 </xsl:for-each>
119 <xsl:call-template name="SF-placeholder" />
120 </body>
121 </html>
122 </xsl:template>
124 </xsl:stylesheet>