1 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
2 <xsl:output method=
"html"
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=
"documentation">
11 <xsl:value-of select=
"@title"/>
13 <link rel=
"stylesheet" type=
"text/css" href=
"doc.css"/>
14 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
17 <xsl:call-template name=
"header"/>
20 <xsl:apply-templates/>
26 <xsl:template match=
"arguments">
30 <xsl:for-each select=
"arg">
33 <xsl:value-of select=
"@arg"/>
35 <xsl:text> --
</xsl:text>
36 <xsl:apply-templates/>
43 <xsl:template name=
"main-left">
44 <xsl:apply-templates select=
"arguments"/>
46 <xsl:when test=
"documentation-string">
47 <h3>Details
<a name=
"details"/></h3>
48 <xsl:apply-templates select=
"documentation-string"/>
51 <p style=
"color: red; font-weight: bold">
52 No documentation string. Possibly unimplemented or incomplete.
56 <xsl:apply-templates select=
"implementation-note"/>
59 <xsl:template name=
"main-right">
60 <xsl:if test=
"see-also/constructor">
63 <table cellspacing=
"0" cellpadding=
"0">
64 <xsl:apply-templates select=
"see-also/constructor/see"/>
68 <xsl:if test=
"see-also/slot">
69 <h3>Slot Access Functions
</h3>
71 <table cellspacing=
"0" cellpadding=
"0">
72 <xsl:apply-templates select=
"see-also/slot/see"/>
76 <xsl:if test=
"see-also/other">
79 <table cellspacing=
"0" cellpadding=
"0">
80 <xsl:apply-templates select=
"see-also/other/see"/>
86 <xsl:template name=
"main">
88 <xsl:when test=
"see-also">
89 <table cellspacing=
"0" cellpadding=
"0">
91 <td valign=
"top" width=
"60%">
92 <xsl:call-template name=
"main-left"/>
94 <td valign=
"top" width=
"5%">
97 <td valign=
"top" width=
"35%">
98 <xsl:call-template name=
"main-right"/>
104 <xsl:call-template name=
"main-left"/>
109 <xsl:template match=
"package">
111 <a href=
"pages/{@id}.html">
113 <xsl:value-of select=
"@name"/>
116 <div style=
"left: 100px">
117 <xsl:apply-templates select=
"documentation-string"/>
119 <xsl:document href=
"pages/{@id}.html"
122 doctype-public=
"-//W3C//DTD HTML 4.01 Transitional//EN"
123 doctype-system=
"http://www.w3.org/TR/html4/loose.dtd">
127 <xsl:text>Package
</xsl:text>
128 <xsl:value-of select=
"@name"/>
130 <link rel=
"stylesheet" type=
"text/css" href=
"../doc.css"/>
131 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
134 <xsl:call-template name=
"page-header"/>
138 <a href=
"../index.html">
139 <xsl:value-of select=
"/documentation/@title"/>
144 <xsl:value-of select=
"@name"/>
146 <xsl:apply-templates select=
"documentation-string"/>
147 <table cellspacing=
"0" cellpadding=
"0">
150 <xsl:if test=
"sections">
151 <div style=
"margin-left: -30px">
152 <h3>About This Package
</h3>
154 <xsl:apply-templates select=
"sections/section" mode=
"toc"/>
156 <xsl:apply-templates select=
"sections"/>
160 <h3><a name=
"index"></a>Symbol Index
</h3>
161 <xsl:apply-templates select=
"symbols" mode=
"symbol-index"/>
171 <xsl:template match=
"*" mode=
"symbol-index"/>
173 <xsl:template match=
"symbols" mode=
"symbol-index">
174 <xsl:apply-templates mode=
"symbol-index">
175 <xsl:sort select=
"@id" data-type=
"text" order=
"ascending"/>
176 </xsl:apply-templates>
179 <xsl:template match=
"class" mode=
"symbol-index">
180 <a href=
"{@id}.html">
181 <tt><xsl:value-of select=
"@name"/></tt>
183 <xsl:text>, class
</xsl:text>
184 <xsl:call-template name=
"undocumented"/>
187 <xsl:document href=
"{@id}.html"
190 doctype-public=
"-//W3C//DTD HTML 4.01 Transitional//EN"
191 doctype-system=
"http://www.w3.org/TR/html4/loose.dtd">
195 <xsl:text>Class
</xsl:text>
196 <xsl:value-of select=
"@name"/>
198 <link rel=
"stylesheet" type=
"text/css" href=
"../doc.css"/>
199 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
202 <xsl:call-template name=
"page-header"/>
206 <a href=
"{../../@id}.html">
207 <xsl:value-of select=
"../../@name"/>
210 <xsl:apply-templates select=
"." mode=
"page"/>
217 <xsl:template match=
"function" mode=
"symbol-index">
218 <a href=
"{@id}.html">
219 <tt><xsl:value-of select=
"@name"/></tt>
221 <xsl:text>, function
</xsl:text>
222 <xsl:call-template name=
"undocumented"/>
225 <xsl:document href=
"{@id}.html"
228 doctype-public=
"-//W3C//DTD HTML 4.01 Transitional//EN"
229 doctype-system=
"http://www.w3.org/TR/html4/loose.dtd">
233 <xsl:text>Function
</xsl:text>
234 <xsl:value-of select=
"@name"/>
236 <link rel=
"stylesheet" type=
"text/css" href=
"../doc.css"/>
237 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
240 <xsl:call-template name=
"page-header"/>
244 <a href=
"{../../@id}.html">
245 <xsl:value-of select=
"../../@name"/>
248 <xsl:apply-templates select=
"." mode=
"page"/>
255 <xsl:template match=
"macro" mode=
"symbol-index">
256 <a href=
"{@id}.html">
257 <tt><xsl:value-of select=
"@name"/></tt>
259 <xsl:text>, macro
</xsl:text>
260 <xsl:call-template name=
"undocumented"/>
263 <xsl:document href=
"{@id}.html"
266 doctype-public=
"-//W3C//DTD HTML 4.01 Transitional//EN"
267 doctype-system=
"http://www.w3.org/TR/html4/loose.dtd">
271 <xsl:text>Macro
</xsl:text>
272 <xsl:value-of select=
"@name"/>
274 <link rel=
"stylesheet" type=
"text/css" href=
"../doc.css"/>
275 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
278 <xsl:call-template name=
"page-header"/>
282 <a href=
"{../../@id}.html">
283 <xsl:value-of select=
"../../@name"/>
286 <xsl:apply-templates select=
"." mode=
"page"/>
293 <xsl:template name=
"undocumented">
294 <xsl:if test=
"not(documentation-string)">
295 <xsl:text> </xsl:text>
296 <span style=
"color: red">
302 <xsl:template match=
"variable" mode=
"symbol-index">
303 <a href=
"{@id}.html">
304 <tt><xsl:value-of select=
"@name"/></tt>
306 <xsl:text>, variable
</xsl:text>
307 <xsl:call-template name=
"undocumented"/>
310 <xsl:document href=
"{@id}.html"
313 doctype-public=
"-//W3C//DTD HTML 4.01 Transitional//EN"
314 doctype-system=
"http://www.w3.org/TR/html4/loose.dtd">
318 <xsl:text>Variable
</xsl:text>
319 <xsl:value-of select=
"@name"/>
321 <link rel=
"stylesheet" type=
"text/css" href=
"../doc.css"/>
322 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
325 <xsl:call-template name=
"page-header"/>
329 <a href=
"{../../@id}.html">
330 <xsl:value-of select=
"../../@name"/>
333 <xsl:apply-templates select=
"." mode=
"page"/>
340 <xsl:template match=
"class" mode=
"page">
342 Class
<xsl:value-of select=
"@name"/>
345 <xsl:when test=
"see-also">
346 <table cellspacing=
"0" cellpadding=
"0" width=
"100%">
348 <td valign=
"top" width=
"60%">
349 <xsl:call-template name=
"class-left"/>
351 <td valign=
"top" width=
"5%">
354 <td valign=
"top" width=
"35%">
355 <xsl:call-template name=
"main-right"/>
361 <xsl:call-template name=
"class-left"/>
366 <xsl:template name=
"class-left">
367 <h3>Superclasses
</h3>
369 <xsl:for-each select=
"cpl/superclass">
370 <xsl:call-template name=
"class-list"/>
373 <h3>Documented Subclasses
</h3>
376 <xsl:when test=
"subclasses/subclass">
377 <xsl:for-each select=
"subclasses/subclass">
378 <xsl:sort select=
"@id" data-type=
"text" order=
"ascending"/>
379 <xsl:call-template name=
"class-list"/>
387 <xsl:call-template name=
"main-left"/>
390 <xsl:template name=
"class-list">
391 <xsl:if test=
"position() != 1">
392 <xsl:text>,
</xsl:text>
395 <xsl:when test=
"@id">
396 <a href=
"{@id}.html">
398 <xsl:if test=
"@status = 'INTERNAL'">
399 <xsl:value-of select=
"@package"/>
400 <xsl:text>::
</xsl:text>
402 <xsl:value-of select=
"@name"/>
406 <xsl:when test=
"@status = 'INTERNAL'">
407 <tt style=
"color: #777777">
408 <xsl:value-of select=
"@package"/>
409 <xsl:text>::
</xsl:text>
410 <xsl:value-of select=
"@name"/>
414 <tt style=
"color: #777777">
415 <xsl:value-of select=
"@package"/>
416 <xsl:text>:
</xsl:text>
417 <xsl:value-of select=
"@name"/>
423 <xsl:template match=
"function" mode=
"page">
426 <xsl:value-of select=
"@name"/>
429 <xsl:when test=
"see-also">
430 <table cellspacing=
"0" cellpadding=
"0">
432 <td valign=
"top" width=
"60%">
433 <xsl:call-template name=
"function-left"/>
435 <td valign=
"top" width=
"5%">
438 <td valign=
"top" width=
"35%">
439 <xsl:call-template name=
"main-right"/>
445 <xsl:call-template name=
"function-left"/>
450 <xsl:template name=
"function-left">
453 <xsl:apply-templates select=
"lambda-list"/>
455 <xsl:apply-templates select=
"return"/>
456 <xsl:call-template name=
"main-left"/>
459 <xsl:template match=
"macro" mode=
"page">
462 <xsl:value-of select=
"@name"/>
464 <xsl:apply-templates select=
"lambda-list"/>
465 <xsl:call-template name=
"main"/>
468 <xsl:template match=
"variable" mode=
"page">
471 <xsl:value-of select=
"@name"/>
473 <xsl:call-template name=
"main"/>
476 <xsl:template match=
"lambda-list">
477 <tt><xsl:value-of select=
"../@name"/></tt>
478 <xsl:text> (
</xsl:text>
479 <xsl:for-each select=
"elt">
480 <xsl:if test=
"position() != 1">
481 <xsl:text> </xsl:text>
483 <b><xsl:value-of select=
"text()"/></b>
485 <xsl:text>)
</xsl:text>
488 <xsl:template mode=
"about-arguments" match=
"lambda-list">
490 <a href=
"{../@id}.html">
492 <xsl:value-of select=
"../@name"/>
493 <xsl:text> (
</xsl:text>
494 <xsl:for-each select=
"elt">
495 <xsl:if test=
"position() != 1">
496 <xsl:text> </xsl:text>
498 <xsl:value-of select=
"text()"/>
500 <xsl:text>)
</xsl:text>
505 <xsl:template match=
"documentation-string">
507 <xsl:apply-templates/>
511 <xsl:template match=
"short">
512 <xsl:apply-templates/>
515 <xsl:template match=
"em">
517 <xsl:apply-templates/>
521 <xsl:template match=
"var">
523 <xsl:apply-templates/>
527 <xsl:template match=
"code">
529 <xsl:apply-templates/>
533 <xsl:template match=
"fun">
534 <a href=
"{@id}.html">
536 <xsl:apply-templates/>
541 <xsl:template match=
"a">
543 <xsl:apply-templates/>
547 <xsl:template match=
"class">
548 <a href=
"{@id}.html">
550 <xsl:apply-templates/>
555 <xsl:template match=
"variable">
556 <a href=
"{@id}.html">
558 <xsl:apply-templates/>
563 <xsl:template match=
"itemize">
565 <xsl:apply-templates/>
569 <xsl:template match=
"item">
571 <xsl:apply-templates/>
575 <xsl:template match=
"see">
578 <a href=
"{@id}.html">
580 <xsl:apply-templates/>
586     
588 <xsl:value-of select=
"@see"/>
595 <xsl:template match=
"return">
598 <xsl:apply-templates/>
602 <xsl:template match=
"implementation-note">
603 <h3>Implementation notes
</h3>
604 <xsl:apply-templates/>
607 <xsl:template match=
"break">
611 <xsl:template match=
"sections">
612 <xsl:for-each select=
"section">
614 <a name=
"{generate-id()}"/>
615 <xsl:value-of select=
"@section"/>
617 <xsl:apply-templates/>
621 <xsl:template match=
"section" mode=
"toc">
622 <a href=
"#{generate-id()}" style=
"font-weight: bold">
623 <xsl:value-of select=
"@section"/>
628 <xsl:template match=
"aboutfun">
629 <xsl:variable name=
"fun" select=
"text()"/>
630 <xsl:apply-templates mode=
"about-arguments"
631 select=
"//function[@name=$fun]/lambda-list"/>
632 <div style=
"margin-left: 3em">
634 <xsl:when test=
"//function[@name=$fun]/documentation-string//short">
635 <xsl:for-each select=
"//function[@name=$fun]">
636 <xsl:apply-templates select=
"documentation-string//short"/>
637 <xsl:text> </xsl:text>
638 <a href=
"{@id}.html#details">...
</a>
643 select=
"//function[@name=$fun]/documentation-string"/>
650 <xsl:template match=
"aboutclass">
651 <xsl:variable name=
"name" select=
"text()"/>
652 <xsl:for-each select=
"//class[@name=$name]">
654 <a href=
"{@id}.html">
656 <xsl:value-of select=
"@name"/>
660 <div style=
"margin-left: 3em">
662 <xsl:when test=
"//class[@name=$name]/documentation-string//short">
663 <xsl:for-each select=
"//class[@name=$name]">
664 <xsl:apply-templates select=
"documentation-string//short"/>
665 <xsl:text> </xsl:text>
666 <a href=
"{@id}.html#details">...
</a>
671 select=
"//class[@name=$name]/documentation-string"/>
678 <xsl:template name=
"page-header">
679 <xsl:call-template name=
"header">
680 <xsl:with-param name=
"base" select=
"'../'"/>
684 <xsl:template name=
"header">
685 <xsl:param name=
"base"/>
687 <table cellspacing=
"0" cellpadding=
"0" width=
"100%">
690 <a id=
"headerlink" href=
"{$base}../index.html">
691 <img src=
"{$base}logo.png" border=
"0"/>
696 <b> Relax NG for Closure XML
</b>
698 <td valign=
"center" align=
"right">
699 <b>API documentation
</b>