Doc: "Shapes" and "<str-Shapes />".
[shapes.git] / doc / parts / dynamic / formats / html.xsl
blob72772bd362c71d7f897208017ec57fa479681761
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="2.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="xml" indent="no" />
6 <xsl:include href="../../formats/html.xsl" />
7 <xsl:include href="../../formats/language-elements-html.xsl" />
9 <xsl:template match="/book">
10 <html>
11 <head>
12 <title><xsl:apply-templates select="title" /></title>
13 <xsl:element name="link">
14 <xsl:attribute name="rel">stylesheet</xsl:attribute>
15 <xsl:attribute name="href"><xsl:value-of select="/book/base/@href" />shapes.css</xsl:attribute>
16 </xsl:element>
17 </head>
18 <body>
19 <xsl:call-template name="head-navigation" />
20 <h1><xsl:apply-templates select="title" /></h1>
21 <hr class="thick"/>
22 <xsl:apply-templates select="top" />
23 <p><b>Sections:</b>
24 <xsl:for-each select="section">
25   
26 <xsl:element name="a">
27 <xsl:attribute name="href">#<xsl:value-of select="@id" /></xsl:attribute>
28 <xsl:apply-templates select="title" />
29 </xsl:element>
30 </xsl:for-each>
31 </p>
33 <hr class="thin"/>
34 <p class="center"><b>Alphabetical list</b></p>
35 <p class="center">
36 <xsl:for-each select="/book/section/dynamic-variable[@identifier]">
37 <xsl:sort select="@identifier" />
38 <xsl:call-template name="name-to-linked-dynvar">
39 <xsl:with-param name="name"><xsl:value-of select="@identifier" /></xsl:with-param>
40 </xsl:call-template>
41   
42 </xsl:for-each>
43 </p>
44 <hr class="thin"/>
46 <xsl:for-each select="section">
47 <h2>
48 <xsl:element name="a">
49 <xsl:attribute name="name"><xsl:value-of select="@id" /></xsl:attribute>
50 <xsl:apply-templates select="title" />
51 </xsl:element>
52 </h2>
53 <xsl:apply-templates select="top" />
54 <p class="center">
55 <xsl:for-each select="dynamic-variable[@identifier]">
56 <xsl:sort select="@identifier" />
57 <xsl:call-template name="name-to-linked-dynvar">
58 <xsl:with-param name="name"><xsl:value-of select="@identifier" /></xsl:with-param>
59 </xsl:call-template>
60   
61 </xsl:for-each>
62 </p>
63 <xsl:apply-templates select="dynamic-variable" />
64 </xsl:for-each>
66 </body>
67 </html>
68 </xsl:template>
70 </xsl:stylesheet>