1 <?xml version=
"1.0" encoding=
"UTF-8"?>
4 xmlns =
"http://www.w3.org/1999/xhtml"
5 xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
10 doctype-public =
"-//W3C//DTD XHTML 1.0 Transitional//EN"
11 doctype-system =
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
13 media-type =
"text/html"
15 <xsl:param name=
"css" select=
"'styles/plain.css'"/>
16 <xsl:param name=
"title" select=
"'Configuration Documentation'"/>
18 <xsl:variable name=
"typeLookup" select=
"document('../types.xml')" />
20 <xsl:template match=
"/">
21 <html lang=
"en" xml:
lang=
"en">
23 <title><xsl:value-of select=
"$title" /> -
<xsl:value-of select=
"/configdoc/title" /></title>
24 <meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8" />
25 <link rel=
"stylesheet" type=
"text/css" href=
"{$css}" />
28 <div id=
"library"><xsl:value-of select=
"/configdoc/title" /></div>
29 <h1><xsl:value-of select=
"$title" /></h1>
30 <h2>Table of Contents
</h2>
32 <xsl:apply-templates mode=
"toc" />
34 <xsl:apply-templates />
39 <xsl:template match=
"title" mode=
"toc" />
40 <xsl:template match=
"namespace" mode=
"toc">
41 <xsl:if test=
"count(directive)>0">
43 <a href=
"#{@id}"><xsl:value-of select=
"name" /></a>
45 <xsl:apply-templates select=
"directive" mode=
"toc" />
50 <xsl:template match=
"directive" mode=
"toc">
51 <li><a href=
"#{@id}"><xsl:value-of select=
"name" /></a></li>
54 <xsl:template match=
"title" />
56 <xsl:template match=
"namespace">
57 <xsl:apply-templates />
58 <xsl:if test=
"count(directive)=0">
59 <p>No configuration directives defined for this namespace.
</p>
62 <xsl:template match=
"namespace/name">
63 <h2 id=
"{../@id}"><xsl:value-of select=
"." /></h2>
65 <xsl:template match=
"namespace/description">
66 <div class=
"description">
67 <xsl:copy-of xmlns:
xhtml=
"http://www.w3.org/1999/xhtml" select=
"xhtml:div/node()" />
71 <xsl:template match=
"directive">
72 <xsl:apply-templates />
74 <xsl:template match=
"directive/name">
75 <xsl:apply-templates select=
"../aliases/alias" mode=
"anchor" />
76 <h3 id=
"{../@id}"><xsl:value-of select=
"../@id" /></h3>
78 <xsl:template match=
"alias" mode=
"anchor">
82 <!-- Do not pass through -->
83 <xsl:template match=
"alias"></xsl:template>
85 <xsl:template match=
"directive/constraints">
86 <table class=
"constraints">
87 <xsl:apply-templates />
88 <xsl:if test=
"../aliases/alias">
89 <xsl:apply-templates select=
"../aliases" mode=
"constraints" />
93 <xsl:template match=
"directive/aliases" mode=
"constraints">
97 <xsl:for-each select=
"alias">
98 <xsl:if test=
"position()>1">,
</xsl:if>
99 <xsl:value-of select=
"." />
104 <xsl:template match=
"directive/description">
105 <div class=
"description">
106 <xsl:copy-of xmlns:
xhtml=
"http://www.w3.org/1999/xhtml" select=
"xhtml:div/node()" />
110 <xsl:template match=
"constraints/type">
114 <xsl:variable name=
"type" select=
"text()" />
115 <xsl:attribute name=
"class">type type-
<xsl:value-of select=
"$type" /></xsl:attribute>
116 <xsl:value-of select=
"$typeLookup/types/type[@id=$type]/text()" />
117 <xsl:if test=
"@allow-null='yes'">
123 <xsl:template match=
"constraints/allowed">
125 <th>Allowed values:
</th>
127 <xsl:for-each select=
"value"><!--
128 --><xsl:if test=
"position()>1">,
</xsl:if>
129 "<xsl:value-of select=
"." />"<!--
134 <xsl:template match=
"constraints/default">
137 <td><pre><xsl:value-of select=
"." xml:
space=
"preserve" /></pre></td>