various docstrings; release
[cxml/s11.git] / doc / html.xsl
blob90563f795cad15cb6d0d77f0e9be14049456c2f0
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2 <xsl:output method="html"
3 indent="yes"
4 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
5 doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
7 <xsl:template match="@*|node()">
8 <xsl:copy>
9 <xsl:apply-templates select="@*|node()"/>
10 </xsl:copy>
11 </xsl:template>
13 <xsl:template match="documentation">
14 <html>
15 <head>
16 <title>
17 <xsl:value-of select="@title"/>
18 </title>
19 <link rel="stylesheet" type="text/css" href="cxml.css"/>
20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
21 </head>
22 <body>
23 <div class="sidebar">
24 <div class="sidebar-title">
25 <a href="index.html">Closure XML</a>
26 </div>
27 <div class="sidebar-main">
28 <ul class="main">
29 <li>
30 <a href="installation.html">Installing Closure XML</a>
31 <ul class="sub">
32 <li><a href="installation.html#download"><b>Download</b></a></li>
33 <li><a href="installation.html#implementations">Implementation-specific notes</a></li>
34 <li><a href="installation.html#compilation">Compilation</a></li>
35 <li><a href="installation.html#tests">Tests</a></li>
36 </ul>
37 </li>
38 <li>
39 <ul class="hack">
40 <li>
41 <a href="quickstart.html"><b>Quick-Start Example / FAQ</b></a>
42 </li>
43 </ul>
44 </li>
45 <li>
46 <a href="sax.html">SAX parsing and serialization</a>
47 <ul class="sub">
48 <li><a href="sax.html#parser">Parsing and Validating</a></li>
49 <li><a href="sax.html#serialization">Serialization</a></li>
50 <li><a href="sax.html#misc">Miscellaneous SAX handlers</a></li>
51 <li><a href="sax.html#rods">Recoders</a></li>
52 <li><a href="sax.html#dtdcache">Caching of DTD Objects</a></li>
53 <li><a href="sax.html#catalogs">XML Catalogs</a></li>
54 <li><a href="sax.html#sax">SAX Interface</a></li>
55 </ul>
56 </li>
57 <li>
58 <a href="klacks.html">Klacks parser</a>
59 <ul class="sub">
60 <li><a href="klacks.html#sources">Parsing incrementally</a></li>
61 <li><a href="klacks.html#convenience">Convenience functions</a></li>
62 <li><a href="klacks.html#klacksax">Bridging Klacks and SAX</a></li>
63 <li><a href="klacks.html#locator">Location information</a></li>
64 <li><a href="klacks.html#klacksax">Examples</a></li>
65 </ul>
66 </li>
67 <li>
68 <a href="dom.html">DOM implementation</a>
69 <ul class="sub">
70 <li><a href="dom.html#parser">Parsing with the DOM builder</a></li>
71 <li><a href="dom.html#serialization">Serialization</a></li>
72 <li><a href="dom.html#mapping">DOM/Lisp mapping</a></li>
73 </ul>
74 </li>
75 <li>
76 <ul class="hack">
77 <li><a href="xmls-compat.html">XMLS Builder</a></li>
78 </ul>
79 </li>
80 </ul>
81 </div>
82 </div>
83 <xsl:apply-templates/>
84 </body>
85 </html>
86 </xsl:template>
88 <xsl:template match="page-index">
89 <ul>
90 <xsl:for-each select="//heading">
91 <li>
92 <a href="#{generate-id()}">
93 <xsl:copy>
94 <xsl:apply-templates select="node()"/>
95 </xsl:copy>
96 </a>
97 </li>
98 </xsl:for-each>
99 </ul>
100 </xsl:template>
102 <xsl:template match="heading">
103 <a name="{generate-id()}"/>
104 <h3>
105 <xsl:copy>
106 <xsl:apply-templates select="node()"/>
107 </xsl:copy>
108 </h3>
109 </xsl:template>
110 </xsl:stylesheet>