docs: Fix typo.
[Samba/gebeck_regimport.git] / docs-xml / smbdotconf / generate-context.xsl
blob4afba52a863723e0d78e8cc8d001a38fd0e425bc
1 <?xml version='1.0'?>
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="http://samba.org/common"
6 version="1.1"
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()">
15 <xsl:copy>
16 <xsl:apply-templates select="@*|node()"/>
17 </xsl:copy>
18 </xsl:template>
20 <xsl:template match="variablelist">
21 <xsl:element name="itemizedlist">
22 <xsl:apply-templates/>
23 </xsl:element>
24 </xsl:template>
26 <xsl:template match="//samba:parameter">
27 <xsl:variable name="name"><xsl:value-of select="translate(translate(string(@name),' ',''),
28 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
29 </xsl:variable>
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"/>
37 </xsl:attribute>
38 <xsl:element name="parameter">
39 <xsl:attribute name="moreinfo"><xsl:text>none</xsl:text></xsl:attribute>
40 <xsl:value-of select="@name"/>
41 </xsl:element>
42 </xsl:element>
43 </xsl:element>
44 </xsl:element>
45 <xsl:text>&#10;</xsl:text>
46 </xsl:if>
47 </xsl:template>
49 </xsl:stylesheet>