3 Samba-documentation specific stylesheets
4 Published under the GNU GPLv3 or later
6 (C) Jelmer Vernooij 2005
8 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
9 xmlns:
exsl=
"http://exslt.org/common"
10 xmlns:
samba=
"http://www.samba.org/samba/DTD/samba-doc"
12 extension-element-prefixes=
"exsl">
14 <xsl:import href=
"html-common.xsl"/>
16 <xsl:output method=
"xml" encoding=
"UTF-8" doctype-public=
"-//W3C//DTD XHTML 1.0 Strict//EN" indent=
"yes" doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
18 <xsl:template match=
"samba:parameter">
19 <xsl:element name=
"html">
20 <xsl:element name=
"head">
21 <xsl:element name=
"link">
22 <xsl:attribute name=
"href"><xsl:text>smb.conf.xsl
</xsl:text></xsl:attribute>
23 <xsl:attribute name=
"rel"><xsl:text>stylesheet
</xsl:text></xsl:attribute>
24 <xsl:attribute name=
"type"><xsl:text>text/css
</xsl:text></xsl:attribute>
27 <xsl:element name=
"title">
28 <xsl:value-of select=
"@name"/>
31 <xsl:element name=
"body">
32 <xsl:element name=
"h1">
33 <xsl:value-of select=
"@name"/>
36 <xsl:element name=
"div">
37 <xsl:attribute name=
"class"><xsl:text>context
</xsl:text></xsl:attribute>
38 <xsl:text>Context:
</xsl:text>
40 <xsl:when test=
"@context = 'S'">
41 <xsl:text>Share-specific
</xsl:text>
44 <xsl:when test=
"@context = 'G'">
45 <xsl:text>Global
</xsl:text>
49 <xsl:message><xsl:text>Unknown value for context attribute :
</xsl:text><xsl:value-of select=
"@context"/></xsl:message>
55 <xsl:element name=
"div">
56 <xsl:attribute name=
"class"><xsl:text>type
</xsl:text></xsl:attribute>
57 <xsl:text>Type:
</xsl:text>
58 <xsl:value-of select=
"@type"/>
61 <xsl:element name=
"div">
62 <xsl:attribute name=
"class"><xsl:text>synonyms
</xsl:text></xsl:attribute>
63 <xsl:text>Synonyms:
</xsl:text>
64 <xsl:for-each select=
"synonym">
65 <xsl:text>,
</xsl:text>
66 <xsl:value-of select=
"text()"/>
70 <xsl:for-each select=
"value">
71 <xsl:element name=
"div">
72 <xsl:attribute name=
"class"><xsl:text>value
</xsl:text></xsl:attribute>
74 <xsl:when test=
"@type = 'default'">
75 <xsl:text>Default value
</xsl:text>
77 <xsl:when test=
"@type = 'example'">
78 <xsl:text>Example value
</xsl:text>
82 <xsl:text>:
</xsl:text>
84 <xsl:value-of select=
"text()"/>
89 <xsl:element name=
"div">
90 <xsl:attribute name=
"class"><xsl:text>description
</xsl:text></xsl:attribute>
92 <xsl:for-each select=
"description">
93 <xsl:apply-templates/>
100 <xsl:template match=
"description">
101 <xsl:apply-templates/>