3
For generating the `quickref.html` web page from output of
6
(c) 2005 (W3C) MIT, ERCIM, Keio University
7
See tidy.h for the copyright notice.
9
Written by Charles Reitzel and Jelks Cabaniss
14
$Date: 2005/04/13 11:10:58 $
19
<xsl:stylesheet version="1.0"
20
xmlns="http://www.w3.org/1999/xhtml"
21
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
23
<xsl:output method="xml" indent="yes"
25
omit-xml-declaration="yes"
26
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
27
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
29
<xsl:template match="/">
30
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
32
<title>HTML Tidy Configuration Options Quick Reference</title>
33
<link type="text/css" rel="stylesheet" href="tidy.css" />
37
<h1 id="top">Quick Reference</h1>
39
<h2>HTML Tidy Configuration Options</h2>
41
<p><em>Generated automatically with HTML Tidy released
42
on <xsl:value-of select="config/@version" />.</em></p>
44
<p><a class="h3" href="#MarkupHeader">HTML, XHTML, XML</a><br />
45
<a class="h3" href="#DiagnosticsHeader">Diagnostics</a><br />
46
<a class="h3" href="#PrettyPrintHeader">Pretty Print</a><br />
47
<a class="h3" href="#EncodingHeader">Character Encoding</a><br />
48
<a class="h3" href="#MiscellaneousHeader">Miscellaneous</a></p>
50
<xsl:call-template name="link-section" />
52
<xsl:call-template name="detail-section" />
59
<!-- Named Templates: -->
61
<xsl:template name="link-section">
62
<table summary="Tidy Options Quick Reference Header Section" border="0"
63
cellpadding="3" cellspacing="0">
69
<xsl:call-template name="links">
70
<xsl:with-param name="class">markup</xsl:with-param>
71
<xsl:with-param name="header">HTML, XHTML, XML</xsl:with-param>
72
<xsl:with-param name="headerID">MarkupHeader</xsl:with-param>
74
<xsl:call-template name="links">
75
<xsl:with-param name="class">diagnostics</xsl:with-param>
76
<xsl:with-param name="header">Diagnostics</xsl:with-param>
77
<xsl:with-param name="headerID">DiagnosticsHeader</xsl:with-param>
79
<xsl:call-template name="links">
80
<xsl:with-param name="class">print</xsl:with-param>
81
<xsl:with-param name="header">Pretty Print</xsl:with-param>
82
<xsl:with-param name="headerID">PrettyPrintHeader</xsl:with-param>
84
<xsl:call-template name="links">
85
<xsl:with-param name="class">encoding</xsl:with-param>
86
<xsl:with-param name="header">Character Encoding</xsl:with-param>
87
<xsl:with-param name="headerID">EncodingHeader</xsl:with-param>
89
<xsl:call-template name="links">
90
<xsl:with-param name="class">misc</xsl:with-param>
91
<xsl:with-param name="header">Miscellaneous</xsl:with-param>
92
<xsl:with-param name="headerID">MiscellaneousHeader</xsl:with-param>
98
<xsl:template name="detail-section">
99
<table summary="Tidy Options Quick Reference Detail Section" border="0"
100
cellpadding="3" cellspacing="0">
101
<xsl:call-template name="reference">
102
<xsl:with-param name="class">markup</xsl:with-param>
103
<xsl:with-param name="header">HTML, XHTML, XML</xsl:with-param>
104
<xsl:with-param name="headerID">MarkupReference</xsl:with-param>
106
<xsl:call-template name="reference">
107
<xsl:with-param name="class">diagnostics</xsl:with-param>
108
<xsl:with-param name="header">Diagnostics</xsl:with-param>
109
<xsl:with-param name="headerID">DiagnosticsReference</xsl:with-param>
111
<xsl:call-template name="reference">
112
<xsl:with-param name="class">print</xsl:with-param>
113
<xsl:with-param name="header">Pretty Print</xsl:with-param>
114
<xsl:with-param name="headerID">PrettyPrintReference</xsl:with-param>
116
<xsl:call-template name="reference">
117
<xsl:with-param name="class">encoding</xsl:with-param>
118
<xsl:with-param name="header">Character Encoding</xsl:with-param>
119
<xsl:with-param name="headerID">EncodingReference</xsl:with-param>
121
<xsl:call-template name="reference">
122
<xsl:with-param name="class">misc</xsl:with-param>
123
<xsl:with-param name="header">Miscellaneous</xsl:with-param>
124
<xsl:with-param name="headerID">MiscellaneousReference</xsl:with-param>
130
<xsl:template name="links">
131
<xsl:param name="class"/>
132
<xsl:param name="header"/>
133
<xsl:param name="headerID"/>
135
<td class="h3" colspan="2" id="{$headerID}">
136
<xsl:value-of select="$header"/> Options</td>
137
<td valign="top"><a href="#top">Top</a></td>
139
<xsl:call-template name="ClassHeaders" />
140
<xsl:for-each select="/config/option[@class=$class]">
141
<xsl:sort select="name" order="ascending" />
143
<td><a href="#{name}"><xsl:value-of select="name"/></a></td>
144
<td><xsl:apply-templates select="type"/></td>
146
<xsl:when test="string-length(default) > 0 ">
147
<xsl:apply-templates select="default" />
157
<td colspan="3"> </td>
162
<xsl:template name="reference">
163
<xsl:param name="class"/>
164
<xsl:param name="header"/>
165
<xsl:param name="headerID"/>
171
<td valign="top" colspan="2" class="h2" id="{$headerID}">
172
<xsl:value-of select="$header"/> Options Reference
179
<xsl:for-each select="/config/option[@class=$class]">
180
<xsl:sort select="name" order="ascending" />
182
<td class="tabletitle" valign="top" id="{name}">
183
<xsl:value-of select="name"/>
185
<td class="tabletitlelink" valign="top" align="right">
186
<a href="#top">Top</a></td>
189
<td valign="top">Type: <strong><xsl:value-of
190
select="type"/></strong><br />
193
<xsl:when test="string-length(default) > 0">
194
Default: <strong><xsl:apply-templates select="default" /></strong>
197
Default: <strong>-</strong>
202
<xsl:when test="string-length(example) > 0">
203
<br />Example: <strong><xsl:apply-templates
204
select="example"/></strong>
207
<br />Example: <strong>-</strong>
211
<td align="right" valign="top">
212
<xsl:for-each select="seealso">
213
<a href="#{.}"><xsl:apply-templates select="." /></a>
214
<xsl:if test="position() != last()">
222
<td colspan="2"><xsl:apply-templates select="description"/></td>
231
<xsl:template name="ClassHeaders">
233
<td class="tabletitle">Option</td>
234
<td class="tabletitle">Type</td>
235
<td class="tabletitle">Default</td>
240
<!-- Regular Templates: -->
241
<xsl:template match="a | code | em | strong | br">
242
<xsl:element name="{local-name(.)}">
243
<xsl:copy-of select="@* | node()" />