summaryrefslogtreecommitdiff
path: root/docs/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-07-05 00:19:04 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:47:00 -0500
commitae955f654a254f46540f946f5bddb8b9c1288756 (patch)
tree69e14f04f4b4ad3c8ed38d78bfb07b8a4fb531ed /docs/xslt
parent8ae178baeabd7a8b70e68f64ec790b769b23de5e (diff)
downloadsamba-ae955f654a254f46540f946f5bddb8b9c1288756.tar.gz
samba-ae955f654a254f46540f946f5bddb8b9c1288756.tar.bz2
samba-ae955f654a254f46540f946f5bddb8b9c1288756.zip
Bunch of smaller fixes.
(This used to be commit b6ade327e055126d04bb53451c71ebef27112a16)
Diffstat (limited to 'docs/xslt')
-rw-r--r--docs/xslt/latex.xsl12
-rw-r--r--docs/xslt/strip-references.xsl34
2 files changed, 8 insertions, 38 deletions
diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl
index 5ee1f6531d..6434e8d9dd 100644
--- a/docs/xslt/latex.xsl
+++ b/docs/xslt/latex.xsl
@@ -170,12 +170,17 @@
<xsl:apply-templates/>
</xsl:template>
+<xsl:template match="refentry">
+ <xsl:text>\section{</xsl:text><xsl:value-of select="refmeta/refentrytitle"/><xsl:text>}&#10;</xsl:text>
+ <xsl:apply-templates/>
+</xsl:template>
+
<xsl:template match="//samba:parameter">
- <xsl:text>\item[{</xsl:text><xsl:value-of select="@name"/><xsl:text>}]&#10;</xsl:text>
+ <xsl:text>\item[{</xsl:text><xsl:value-of select="@name"/><xsl:text>}]\null{}&#10;</xsl:text>
<xsl:text>\index{</xsl:text><xsl:value-of select="@name"/><xsl:text>|it}&#10;</xsl:text>
<xsl:for-each select="synonym">
- <xsl:text>\item[{</xsl:text><xsl:value-of select="."/><xsl:text>}]&#10;</xsl:text>
+ <xsl:text>\item[{</xsl:text><xsl:value-of select="."/><xsl:text>}]\null{}&#10;</xsl:text>
<xsl:text>\index{</xsl:text><xsl:value-of select="."/><xsl:text>|it}&#10;</xsl:text>
<xsl:text>This parameter is a synonym for \smbconfoption{</xsl:text><xsl:value-of select="../@name"/><xsl:text>}.</xsl:text>
</xsl:for-each>
@@ -219,7 +224,4 @@
<xsl:apply-templates select="description"/>
</xsl:template>
-<xsl:template match="refsect1[title='VERSION']"/>
-<xsl:template match="refsect1[title='AUTHOR']"/>
-
</xsl:stylesheet>
diff --git a/docs/xslt/strip-references.xsl b/docs/xslt/strip-references.xsl
index 568aecafd2..c3dbb71e11 100644
--- a/docs/xslt/strip-references.xsl
+++ b/docs/xslt/strip-references.xsl
@@ -2,41 +2,9 @@
<!-- Removes particular (unuseful for the book) elements from references -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
- <xsl:template match="reference/refentry/refsect1">
- <xsl:if test="title!='VERSION' and title!='AUTHOR'">
- <xsl:element name="refsect1">
- <xsl:if test="@id!=''">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="reference/refentry">
- <xsl:element name="section">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- <xsl:element name="title">
- <xsl:value-of select="refmeta/refentrytitle"/>
- </xsl:element>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
+ <xsl:template match="reference/refentry/refsect1[title='VERSION' or title='AUTHOR']"/>
<xsl:template match="reference/refentry/refmeta"/>
<xsl:template match="reference/refentry/refnamediv"/>
-
- <xsl:template match="reference">
- <xsl:element name="appendix">
- <xsl:attribute name="id">
- <xsl:value-of select="@id"/>
- </xsl:attribute>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
</xsl:stylesheet>