Fix smb.conf.5 output
authorJelmer Vernooij <jelmer@samba.org>
Sat, 9 Jul 2005 00:15:59 +0000 (00:15 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 13:47:04 +0000 (08:47 -0500)
(This used to be commit a6cd8e8598b50fc9c8157bd84d4a0ec976f8c5f1)

docs/xslt/expand-sambadoc.xsl
docs/xslt/expand-smbconfdoc.xsl

index f10f04b97da679f1a9ce2f034c69417b7e9df2df..0a6326ef0bef63874adb72b4b5d1fbb3c2c337ca 100644 (file)
@@ -9,11 +9,11 @@
        xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"
        version="1.1">
 
-       <xsl:import href="strip-references.xsl"/>
-       <xsl:import href="expand-smbconfdoc.xsl"/>
-
        <xsl:output method="xml" encoding="UTF-8" doctype-public="-//OASIS//DTD DocBook XML V4.2//EN" indent="yes" doctype-system="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"/>
 
+       <xsl:include href="strip-references.xsl"/>
+       <xsl:include href="expand-smbconfdoc.xsl"/>
+
        <!-- This is needed to copy content unchanged -->
        <xsl:template match="@*|node()">
                <xsl:copy>
@@ -22,7 +22,6 @@
        </xsl:template>
 
        <xsl:template match="smbconfblock/smbconfoption">
-
                <xsl:element name="member">
                        <xsl:element name="indexterm">
                                <xsl:element name="primary">
index cd929902347206bf9c23092fd4728103568df75f..6162f73169a4e2d79e54b077be8ad1ec996e1084 100644 (file)
@@ -18,9 +18,9 @@
 
        <xsl:template match="related"><xsl:apply-templates/></xsl:template>
 
-       <xsl:template match="//samba:parameterlist">
+       <xsl:template match="samba:parameterlist">
                <xsl:apply-templates>
-                       <xsl:sort select="varlistentry/term/anchor"/>
+                       <xsl:sort select="samba:parameter/@name"/>
                </xsl:apply-templates>
        </xsl:template>
 
                <xsl:apply-templates/>
        </xsl:template>
 
-       <xsl:template match="//samba:parameter">
-               <!-- reconstruct varlistentry - not all of them will go into separate files
-               and also we must repair the main varlistentry itself.
-               -->
+       <xsl:template match="samba:parameter">
                <xsl:variable name="cname"><xsl:value-of select="translate(translate(string(@name),' ',''),
                                'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
                </xsl:variable>
                                                <xsl:value-of select="$name"/>
                                        </xsl:element>
                                </xsl:element>
-
                                <xsl:element name="term">
                                        <xsl:element name="anchor">
                                                <xsl:attribute name="id">
                                        </xsl:element>
                                        <xsl:value-of select="."/>
                                </xsl:element>
-
                                <xsl:element name="listitem">
                                        <xsl:element name="para"><xsl:text>This parameter is a synonym for </xsl:text><xsl:copy-of select="$name"/><xsl:text>.</xsl:text></xsl:element>
                                </xsl:element>
                        </xsl:element>
                        <xsl:copy-of select="$term"/>
                        <xsl:element name="listitem">
-                               <xsl:copy-of select="$content"/> <xsl:text>&#10;</xsl:text>     
-                               <xsl:copy-of select="$default"/> <xsl:text>&#10;</xsl:text>     
-                               <xsl:copy-of select="$examples"/> <xsl:text>&#10;</xsl:text>     
+                               <xsl:copy-of select="$content"/> <xsl:text>&#10;</xsl:text>
+                               <xsl:copy-of select="$default"/> <xsl:text>&#10;</xsl:text>
+                               <xsl:copy-of select="$examples"/> <xsl:text>&#10;</xsl:text>
                        </xsl:element>
                </xsl:element>
        </xsl:template>