summaryrefslogtreecommitdiffstats
path: root/docs-xml/xslt/expand-smbconfdoc.xsl
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2008-04-24 23:40:51 +0400
committerAlexander Bokovoy <ab@samba.org>2008-04-24 23:40:51 +0400
commit3be9a355ff2ab1f11dbf07542ae9ed2c013854cc (patch)
tree9b75d5f03dee0b38e93a96a69b3d3b237c7238cc /docs-xml/xslt/expand-smbconfdoc.xsl
parent9174e864fee1d6072b88f9a1325fb964f21db86a (diff)
downloadsamba-3be9a355ff2ab1f11dbf07542ae9ed2c013854cc.tar.gz
samba-3be9a355ff2ab1f11dbf07542ae9ed2c013854cc.tar.xz
samba-3be9a355ff2ab1f11dbf07542ae9ed2c013854cc.zip
Fix documentation build: manpages, links in the HTML documents.
Fixed manpages generation to properly create handle smb.conf parameters' titles Changed HTML generator to include links for every smb.conf parameter. Now we have correct linking between different HTML documents. Signed-off-by: Alexander Bokovoy <ab@samba.org> (This used to be commit 056935ff1f5fefc3ca42f7006182fc80c94d91ab)
Diffstat (limited to 'docs-xml/xslt/expand-smbconfdoc.xsl')
-rw-r--r--docs-xml/xslt/expand-smbconfdoc.xsl63
1 files changed, 40 insertions, 23 deletions
diff --git a/docs-xml/xslt/expand-smbconfdoc.xsl b/docs-xml/xslt/expand-smbconfdoc.xsl
index 5472d61a9af..3e3dbe19fbb 100644
--- a/docs-xml/xslt/expand-smbconfdoc.xsl
+++ b/docs-xml/xslt/expand-smbconfdoc.xsl
@@ -53,11 +53,11 @@
</xsl:variable>
<xsl:variable name="term">
- <xsl:element name="indexterm">
<xsl:copy-of select="$anchor"/>
- <xsl:value-of select="@name"/>
- <xsl:value-of select="$context"/>
- </xsl:element>
+ <xsl:element name="title">
+ <xsl:value-of select="@name"/>
+ <xsl:value-of select="$context"/>
+ </xsl:element>
</xsl:variable>
@@ -120,8 +120,7 @@
</xsl:variable>
<xsl:for-each select="synonym">
- <xsl:element name="varlistentry">
- <xsl:text>&#10;</xsl:text>
+ <xsl:element name="section">
<xsl:element name="indexterm">
<xsl:attribute name="significance">
<xsl:text>preferred</xsl:text>
@@ -133,7 +132,7 @@
<xsl:value-of select="$name"/>
</xsl:element>
</xsl:element>
- <xsl:element name="term">
+ <xsl:element name="title">
<xsl:element name="anchor">
<xsl:attribute name="id">
<xsl:value-of select="translate(translate(string(.),' ',''), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
@@ -141,28 +140,46 @@
</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 name="variablelist">
+ <xsl:element name="varlistentry">
+ <xsl:element name="listitem">
+ <xsl:element name="para">
+ <xsl:text>This parameter is a synonym for </xsl:text>
+ <xsl:element name="link">
+ <xsl:attribute name="linkend">
+ <xsl:value-of select="translate(translate(string($name),' ',''), 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
+ </xsl:attribute>
+ <xsl:value-of select="$name"/>
+ </xsl:element>
+ <xsl:text>.</xsl:text>
+ </xsl:element>
+ </xsl:element>
+ </xsl:element>
</xsl:element>
+ <xsl:text>&#10;</xsl:text>
</xsl:element>
</xsl:for-each>
- <xsl:element name="varlistentry">
- <xsl:text>&#10;</xsl:text>
- <xsl:element name="indexterm">
- <xsl:attribute name="significance">
- <xsl:text>preferred</xsl:text>
- </xsl:attribute>
- <xsl:element name="primary">
- <xsl:value-of select="@name"/>
+ <xsl:element name="section">
+ <xsl:element name="indexterm">
+ <xsl:attribute name="significance">
+ <xsl:text>preferred</xsl:text>
+ </xsl:attribute>
+ <xsl:element name="primary">
+ <xsl:value-of select="@name"/>
+ </xsl:element>
+ </xsl:element>
+ <xsl:copy-of select="$term"/>
+ <xsl:element name="variablelist">
+ <xsl:element name="varlistentry">
+ <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: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:element>
+ <xsl:text>&#10;</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>