blob: 5cbfab99eb21d5c8e87d5b28860bfc29ff6b0075 [file] [log] [blame]
Daniel Veillardc72f9fd2003-11-16 23:59:52 +00001<?xml version="1.0"?>
2<!--
3 Stylesheet to generate the HTML documentation from an XML API descriptions:
4 xsltproc newapi.xsl libxml2-api.xml
5
6 Daniel Veillard
7-->
8<xsl:stylesheet version="1.0"
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns:exsl="http://exslt.org/common"
Daniel Veillard0b3d9b82003-11-17 11:51:30 +000011 xmlns:str="http://exslt.org/strings"
12 extension-element-prefixes="exsl str"
13 exclude-result-prefixes="exsl str">
Daniel Veillardc72f9fd2003-11-16 23:59:52 +000014
Daniel Veillard0b3d9b82003-11-17 11:51:30 +000015 <!-- Import the main part of the site stylesheets -->
Daniel Veillardc72f9fd2003-11-16 23:59:52 +000016 <xsl:import href="site.xsl"/>
17
18 <!-- Generate XHTML-1.0 transitional -->
19 <xsl:output method="xml" encoding="ISO-8859-1" indent="yes"
20 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
21 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
22
23 <!-- Build keys for all symbols -->
24 <xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
25
Daniel Veillard2925c0a2003-11-17 13:58:17 +000026 <!-- the target directory for the HTML output -->
27 <xsl:variable name="htmldir">html</xsl:variable>
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000028 <xsl:variable name="href_base">../</xsl:variable>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +000029
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000030 <!-- The table of content for the HTML API pages -->
31 <xsl:variable name="menu_name">API Menu</xsl:variable>
32 <xsl:variable name="apitoc">
33 <form action="../search.php"
34 enctype="application/x-www-form-urlencoded" method="get">
35 <input name="query" type="text" size="20" value=""/>
36 <input name="submit" type="submit" value="Search ..."/>
37 </form>
38 <ul><!-- style="margin-left: -1em" -->
39 <li><a style="font-weight:bold"
40 href="{$href_base}index.html">Main Menu</a></li>
41 <li><a style="font-weight:bold"
42 href="{$href_base}docs.html">Developer Menu</a></li>
43 <li><a style="font-weight:bold"
44 href="{$href_base}examples/index.html">Code Examples</a></li>
45 <li><a style="font-weight:bold"
46 href="{$href_base}index.html">API Menu</a></li>
47 <li><a href="libxml-parser.html">Parser API</a></li>
48 <li><a href="libxml-tree.html">Tree API</a></li>
49 <li><a href="libxml-xmlreader.html">Reader API</a></li>
50 <li><a href="{$href_base}guidelines.html">XML Guidelines</a></li>
51 </ul>
52 </xsl:variable>
53 <xsl:template name="apitoc">
54 <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
55 <tr>
56 <td>
57 <table width="100%" border="0" cellspacing="1" cellpadding="3">
58 <tr>
59 <td colspan="1" bgcolor="#eecfa1" align="center">
60 <center>
61 <b><xsl:value-of select="$menu_name"/></b>
62 </center>
63 </td>
64 </tr>
65 <tr>
66 <td bgcolor="#fffacd">
67 <xsl:copy-of select="$apitoc"/>
68 </td>
69 </tr>
70 </table>
71 <table width="100%" border="0" cellspacing="1" cellpadding="3">
72 <tr>
73 <td colspan="1" bgcolor="#eecfa1" align="center">
74 <center>
75 <b>API Indexes</b>
76 </center>
77 </td>
78 </tr>
79 <tr>
80 <td bgcolor="#fffacd">
81 <xsl:copy-of select="$api"/>
82 </td>
83 </tr>
84 </table>
85 <table width="100%" border="0" cellspacing="1" cellpadding="3">
86 <tr>
87 <td colspan="1" bgcolor="#eecfa1" align="center">
88 <center>
89 <b>Related links</b>
90 </center>
91 </td>
92 </tr>
93 <tr>
94 <td bgcolor="#fffacd">
95 <xsl:copy-of select="$related"/>
96 </td>
97 </tr>
98 </table>
99 </td>
100 </tr>
101 </table>
102 </xsl:template>
103
104 <xsl:template name="docstyle">
105 <style type="text/css">
106 pre.programlisting {border-style: double}
107 </style>
108 </xsl:template>
Daniel Veillardbff06bf2003-11-17 16:58:05 +0000109 <xsl:template name="navbar">
110 <xsl:variable name="previous" select="preceding-sibling::file[1]"/>
111 <xsl:variable name="next" select="following-sibling::file[1]"/>
112 <table class="navigation" width="100%" summary="Navigation header"
113 cellpadding="2" cellspacing="2">
114 <tr valign="middle">
115 <xsl:if test="$previous">
116 <td><a accesskey="p" href="libxml-{$previous/@name}.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td>
117 <th align="left"><a href="libxml-{$previous/@name}.html"><xsl:value-of select="$previous/@name"/></a></th>
118 </xsl:if>
119 <td><a accesskey="u" href="index.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td>
120 <th align="left"><a href="index.html">API documentation</a></th>
121 <td><a accesskey="h" href="../index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td>
122 <th align="center"><a href="../index.html">The XML C parser and toolkit of Gnome</a></th>
123 <xsl:if test="$next">
124 <th align="right"><a href="libxml-{$next/@name}.html"><xsl:value-of select="$next/@name"/></a></th>
125 <td><a accesskey="n" href="libxml-{$next/@name}.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td>
126 </xsl:if>
127 </tr>
128 </table>
129 </xsl:template>
130
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000131 <!-- This is convoluted but needed to force the current document to
132 be the API one and not the result tree from the tokenize() result,
133 because the keys are only defined on the main document -->
134 <xsl:template mode="dumptoken" match='*'>
135 <xsl:param name="token"/>
136 <xsl:variable name="ref" select="key('symbols', $token)"/>
137 <xsl:choose>
138 <xsl:when test="$ref">
139 <a href="libxml-{$ref/@file}.html#{$ref/@name}"><xsl:value-of select="$token"/></a>
140 </xsl:when>
141 <xsl:otherwise>
142 <xsl:value-of select="$token"/>
143 </xsl:otherwise>
144 </xsl:choose>
145 </xsl:template>
146
147 <!-- dumps a string, making cross-reference links -->
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000148 <xsl:template name="dumptext">
149 <xsl:param name="text"/>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000150 <xsl:variable name="ctxt" select='.'/>
151 <!-- <xsl:value-of select="$text"/> -->
152 <xsl:for-each select="str:tokenize($text, ' &#9;')">
153 <xsl:apply-templates select="$ctxt" mode='dumptoken'>
154 <xsl:with-param name="token" select="string(.)"/>
155 </xsl:apply-templates>
156 <xsl:if test="position() != last()">
157 <xsl:text> </xsl:text>
158 </xsl:if>
159 </xsl:for-each>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000160 </xsl:template>
161
162 <xsl:template match="macro" mode="toc">
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000163 <pre class="programlisting">
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000164 <xsl:text>#define </xsl:text><a href="#{@name}"><xsl:value-of select="@name"/></a><xsl:text>
165
166</xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000167 </pre>
168 </xsl:template>
169
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000170 <xsl:template match="variable" mode="toc">
171 <pre class="programlisting">
172 <xsl:text>Variable </xsl:text>
173 <xsl:call-template name="dumptext">
174 <xsl:with-param name="text" select="string(@type)"/>
175 </xsl:call-template>
176 <xsl:text> </xsl:text>
177 <a name="{@name}"></a>
178 <xsl:value-of select="@name"/>
179 <xsl:text>
180
181</xsl:text>
182 </pre>
183 </xsl:template>
184
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000185 <xsl:template match="typedef" mode="toc">
186 <xsl:variable name="name" select="string(@name)"/>
187 <pre class="programlisting">
188 <xsl:choose>
189 <xsl:when test="@type = 'enum'">
190 <xsl:text>Enum </xsl:text>
191 <a name="{$name}"><xsl:value-of select="$name"/></a>
192 <xsl:text> {
193</xsl:text>
194 <xsl:for-each select="/api/symbols/enum[@type = $name]">
195 <xsl:sort select="@value" data-type="number" order="ascending"/>
196 <xsl:text> </xsl:text>
197 <a name="{@name}"><xsl:value-of select="@name"/></a>
198 <xsl:text> = </xsl:text>
199 <xsl:value-of select="@value"/>
200 <xsl:if test="@info != ''">
201 <xsl:text> : </xsl:text>
202 <xsl:call-template name="dumptext">
203 <xsl:with-param name="text" select="@info"/>
204 </xsl:call-template>
205 </xsl:if>
206 <xsl:text>
207</xsl:text>
208 </xsl:for-each>
209 <xsl:text>}
210
211</xsl:text>
212 </xsl:when>
213 <xsl:otherwise>
214 <xsl:text>Typedef </xsl:text>
215 <xsl:call-template name="dumptext">
216 <xsl:with-param name="text" select="@type"/>
217 </xsl:call-template>
218 <xsl:text> </xsl:text>
219 <a name="{$name}"><xsl:value-of select="$name"/></a>
220 <xsl:text>
221
222</xsl:text>
223 </xsl:otherwise>
224 </xsl:choose>
225 </pre>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000226 </xsl:template>
227
228 <xsl:template match="struct" mode="toc">
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000229 <pre class="programlisting">
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000230 <xsl:text>Structure </xsl:text><a name="{@name}"><xsl:value-of select="@name"/></a><br/>
231 <xsl:value-of select="@type"/><xsl:text> {
232</xsl:text>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000233 <xsl:if test="not(field)">
234 <xsl:text>The content of this structure is not made public by the API.
235</xsl:text>
236 </xsl:if>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000237 <xsl:for-each select="field">
238 <xsl:text> </xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000239 <xsl:call-template name="dumptext">
240 <xsl:with-param name="text" select="@type"/>
241 </xsl:call-template>
242 <xsl:text>&#9;</xsl:text>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000243 <xsl:value-of select="@name"/>
244 <xsl:if test="@info != ''">
245 <xsl:text>&#9;: </xsl:text>
246 <xsl:call-template name="dumptext">
247 <xsl:with-param name="text" select="substring(@info, 1, 50)"/>
248 </xsl:call-template>
249 </xsl:if>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000250 <xsl:text>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000251</xsl:text>
252 </xsl:for-each>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000253 <xsl:text>}</xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000254 </pre>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000255 <br/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000256 </xsl:template>
257
258 <xsl:template match="macro">
259 <xsl:variable name="name" select="string(@name)"/>
260 <h3><a name="{$name}"></a>Macro: <xsl:value-of select="$name"/></h3>
261 <pre><xsl:text>#define </xsl:text><xsl:value-of select="$name"/></pre>
262 <p>
263 <xsl:call-template name="dumptext">
264 <xsl:with-param name="text" select="info"/>
265 </xsl:call-template>
266 </p><xsl:text>
267</xsl:text>
268 </xsl:template>
269
270 <xsl:template match="function" mode="toc">
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000271 <pre class="programlisting">
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000272 <xsl:call-template name="dumptext">
273 <xsl:with-param name="text" select="return/@type"/>
274 </xsl:call-template>
275 <xsl:text>&#9;</xsl:text>
276 <a href="#{@name}"><xsl:value-of select="@name"/></a>
277 <xsl:text>&#9;(</xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000278 <xsl:if test="not(arg)">
279 <xsl:text>void</xsl:text>
280 </xsl:if>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000281 <xsl:for-each select="arg">
282 <xsl:call-template name="dumptext">
283 <xsl:with-param name="text" select="@type"/>
284 </xsl:call-template>
285 <xsl:text> </xsl:text>
286 <xsl:value-of select="@name"/>
287 <xsl:if test="position() != last()">
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000288 <xsl:text>, </xsl:text><br/><xsl:text>&#9;&#9;&#9;&#9; </xsl:text>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000289 </xsl:if>
290 </xsl:for-each>
291 <xsl:text>)</xsl:text><br/>
292 <xsl:text>
293</xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000294 </pre>
295 </xsl:template>
296
297 <xsl:template match="functype" mode="toc">
298 <pre class="programlisting">
299 <xsl:variable name="name" select="string(@name)"/>
300 <a name="{$name}"></a>
301 <xsl:text>Function type: </xsl:text>
302 <xsl:value-of select="$name"/>
303 <xsl:text>
304</xsl:text>
305 <xsl:call-template name="dumptext">
306 <xsl:with-param name="text" select="return/@type"/>
307 </xsl:call-template>
308 <xsl:text>&#9;</xsl:text>
309 <xsl:value-of select="@name"/>
310 <xsl:text>&#9;(</xsl:text>
311 <xsl:if test="not(arg)">
312 <xsl:text>void</xsl:text>
313 </xsl:if>
314 <xsl:for-each select="arg">
315 <xsl:call-template name="dumptext">
316 <xsl:with-param name="text" select="@type"/>
317 </xsl:call-template>
318 <xsl:text> </xsl:text>
319 <xsl:value-of select="@name"/>
320 <xsl:if test="position() != last()">
321 <xsl:text>, </xsl:text><br/><xsl:text>&#9;&#9;&#9;&#9; </xsl:text>
322 </xsl:if>
323 </xsl:for-each>
324 <xsl:text>)
325</xsl:text>
326 </pre>
327 <p>
328 <xsl:call-template name="dumptext">
329 <xsl:with-param name="text" select="info"/>
330 </xsl:call-template>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000331 </p>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000332 <xsl:if test="arg | return">
333 <div class="variablelist"><table border="0"><col align="left"/><tbody>
334 <xsl:for-each select="arg">
335 <tr>
336 <td><span class="term"><i><tt><xsl:value-of select="@name"/></tt></i>:</span></td>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000337 <td>
338 <xsl:call-template name="dumptext">
339 <xsl:with-param name="text" select="@info"/>
340 </xsl:call-template>
341 </td>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000342 </tr>
343 </xsl:for-each>
344 <xsl:if test="return/@info">
345 <tr>
346 <td><span class="term"><i><tt>Returns</tt></i>:</span></td>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000347 <td>
348 <xsl:call-template name="dumptext">
349 <xsl:with-param name="text" select="return/@info"/>
350 </xsl:call-template>
351 </td>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000352 </tr>
353 </xsl:if>
354 </tbody></table></div>
355 </xsl:if>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000356 <br/>
357 <xsl:text>
358</xsl:text>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000359 </xsl:template>
360
361 <xsl:template match="function">
362 <xsl:variable name="name" select="string(@name)"/>
363 <h3><a name="{$name}"></a>Function: <xsl:value-of select="$name"/></h3>
364 <pre class="programlisting">
365 <xsl:call-template name="dumptext">
366 <xsl:with-param name="text" select="return/@type"/>
367 </xsl:call-template>
368 <xsl:text>&#9;</xsl:text>
369 <xsl:value-of select="@name"/>
370 <xsl:text>&#9;(</xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000371 <xsl:if test="not(arg)">
372 <xsl:text>void</xsl:text>
373 </xsl:if>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000374 <xsl:for-each select="arg">
375 <xsl:call-template name="dumptext">
376 <xsl:with-param name="text" select="@type"/>
377 </xsl:call-template>
378 <xsl:text> </xsl:text>
379 <xsl:value-of select="@name"/>
380 <xsl:if test="position() != last()">
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000381 <xsl:text>, </xsl:text><br/><xsl:text>&#9;&#9;&#9;&#9; </xsl:text>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000382 </xsl:if>
383 </xsl:for-each>
384 <xsl:text>)</xsl:text><br/>
385 <xsl:text>
386</xsl:text>
387 </pre>
388 <p>
389 <xsl:call-template name="dumptext">
390 <xsl:with-param name="text" select="info"/>
391 </xsl:call-template>
392 </p><xsl:text>
393</xsl:text>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000394 <xsl:if test="arg | return/@info">
395 <div class="variablelist"><table border="0"><col align="left"/><tbody>
396 <xsl:for-each select="arg">
397 <tr>
398 <td><span class="term"><i><tt><xsl:value-of select="@name"/></tt></i>:</span></td>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000399 <td>
400 <xsl:call-template name="dumptext">
401 <xsl:with-param name="text" select="@info"/>
402 </xsl:call-template>
403 </td>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000404 </tr>
405 </xsl:for-each>
406 <xsl:if test="return/@info">
407 <tr>
408 <td><span class="term"><i><tt>Returns</tt></i>:</span></td>
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000409 <td>
410 <xsl:call-template name="dumptext">
411 <xsl:with-param name="text" select="return/@info"/>
412 </xsl:call-template>
413 </td>
Daniel Veillard0b3d9b82003-11-17 11:51:30 +0000414 </tr>
415 </xsl:if>
416 </tbody></table></div>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000417 </xsl:if>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000418 </xsl:template>
419
420 <xsl:template match="exports" mode="toc">
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000421 <xsl:apply-templates select="key('symbols', string(@symbol))[1]" mode="toc"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000422 </xsl:template>
423
424 <xsl:template match="exports">
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000425 <xsl:apply-templates select="key('symbols', string(@symbol))[1]"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000426 </xsl:template>
427
428 <xsl:template match="file">
429 <xsl:variable name="name" select="@name"/>
430 <xsl:variable name="title">Module <xsl:value-of select="$name"/> from <xsl:value-of select="/api/@name"/></xsl:variable>
431 <xsl:document href="{$htmldir}/libxml-{$name}.html" method="xml" encoding="ISO-8859-1"
432 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
433 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
434 <html>
435 <head>
436 <xsl:call-template name="style"/>
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000437 <xsl:call-template name="docstyle"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000438 <title><xsl:value-of select="$title"/></title>
439 </head>
440 <body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000">
441 <xsl:call-template name="titlebox">
442 <xsl:with-param name="title" select="$title"/>
443 </xsl:call-template>
444 <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center">
445 <tr>
446 <td bgcolor="#8b7765">
447 <table border="0" cellspacing="0" cellpadding="2" width="100%">
448 <tr>
449 <td valign="top" width="200" bgcolor="#8b7765">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000450 <xsl:call-template name="apitoc"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000451 </td>
452 <td valign="top" bgcolor="#8b7765">
453 <table border="0" cellspacing="0" cellpadding="1" width="100%">
454 <tr>
455 <td>
456 <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
457 <tr>
458 <td>
459 <table border="0" cellpadding="3" cellspacing="1" width="100%">
460 <tr>
461 <td bgcolor="#fffacd">
Daniel Veillardbff06bf2003-11-17 16:58:05 +0000462 <xsl:call-template name="navbar"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000463 <h2>Table of Contents</h2>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000464 <xsl:apply-templates select="exports" mode="toc"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000465 <h2>Description</h2>
466 <xsl:text>
467</xsl:text>
468 <xsl:apply-templates select="exports"/>
469 <p><a href="bugs.html">Daniel Veillard</a></p>
470 </td>
471 </tr>
472 </table>
473 </td>
474 </tr>
475 </table>
476 </td>
477 </tr>
478 </table>
479 </td>
480 </tr>
481 </table>
482 </td>
483 </tr>
484 </table>
485 </body>
486 </html>
487 </xsl:document>
488 </xsl:template>
489
490 <xsl:template match="file" mode="toc">
491 <xsl:variable name="name" select="@name"/>
492 <li> <a href="libxml-{$name}.html"><xsl:value-of select="$name"/></a></li>
493 </xsl:template>
494
495 <xsl:template match="/">
496 <xsl:variable name="title">Reference Manual for <xsl:value-of select="/api/@name"/></xsl:variable>
497 <xsl:document href="{$htmldir}/index.html" method="xml" encoding="ISO-8859-1"
498 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
499 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
500 <html>
501 <head>
502 <xsl:call-template name="style"/>
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000503 <xsl:call-template name="docstyle"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000504 <title><xsl:value-of select="$title"/></title>
505 </head>
506 <body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000">
507 <xsl:call-template name="titlebox">
508 <xsl:with-param name="title" select="$title"/>
509 </xsl:call-template>
510 <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center">
511 <tr>
512 <td bgcolor="#8b7765">
513 <table border="0" cellspacing="0" cellpadding="2" width="100%">
514 <tr>
515 <td valign="top" width="200" bgcolor="#8b7765">
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000516 <xsl:call-template name="apitoc"/>
Daniel Veillardc72f9fd2003-11-16 23:59:52 +0000517 </td>
518 <td valign="top" bgcolor="#8b7765">
519 <table border="0" cellspacing="0" cellpadding="1" width="100%">
520 <tr>
521 <td>
522 <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
523 <tr>
524 <td>
525 <table border="0" cellpadding="3" cellspacing="1" width="100%">
526 <tr>
527 <td bgcolor="#fffacd">
528 <h2>Table of Contents</h2>
529 <ul>
530 <xsl:apply-templates select="/api/files/file" mode="toc"/>
531 </ul>
532 <p><a href="bugs.html">Daniel Veillard</a></p>
533 </td>
534 </tr>
535 </table>
536 </td>
537 </tr>
538 </table>
539 </td>
540 </tr>
541 </table>
542 </td>
543 </tr>
544 </table>
545 </td>
546 </tr>
547 </table>
548 </body>
549 </html>
550 </xsl:document>
551 <!-- now build the file for each of the modules -->
552 <xsl:apply-templates select="/api/files/file"/>
553 </xsl:template>
554
555</xsl:stylesheet>