2 <!-- vim:set sts=2 shiftwidth=2 syntax=xml: -->
3 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
4 xmlns:
exsl=
"http://exslt.org/common"
5 xmlns:
samba=
"https://www.samba.org/common"
7 extension-element-prefixes=
"exsl">
9 <xsl:output method=
"xml" omit-xml-declaration=
"yes"/>
11 <xsl:param name=
"smb.context" select=
"'G'"/>
13 <!-- This is needed to copy content unchanged -->
14 <xsl:template match=
"@*|node()">
16 <xsl:apply-templates select=
"@*|node()"/>
20 <xsl:template match=
"variablelist">
21 <xsl:element name=
"itemizedlist">
22 <xsl:apply-templates/>
26 <xsl:template match=
"//samba:parameter">
27 <xsl:variable name=
"name"><xsl:value-of select=
"translate(translate(string(@name),' ',''),
28 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
31 <xsl:if test=
"contains(@context,$smb.context) or $smb.context='ALL'">
32 <xsl:element name=
"listitem">
33 <xsl:element name=
"para">
34 <xsl:element name=
"link">
35 <xsl:attribute name=
"linkend">
36 <xsl:value-of select=
"$name"/>
38 <xsl:element name=
"parameter">
39 <xsl:attribute name=
"moreinfo"><xsl:text>none
</xsl:text></xsl:attribute>
40 <xsl:value-of select=
"@name"/>
45 <xsl:text> </xsl:text>