summaryrefslogtreecommitdiff
path: root/docs/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-06-26 15:43:54 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:56 -0500
commit62b295f1de458f594c4565f44aeec70b1a75126e (patch)
treeddbacf4156e4353ed2f1b36ab2d2bd17fd2c3f17 /docs/xslt
parent3ec218e33109bbf256f3c9d49179a0ae82182640 (diff)
downloadsamba-62b295f1de458f594c4565f44aeec70b1a75126e.tar.gz
samba-62b295f1de458f594c4565f44aeec70b1a75126e.tar.bz2
samba-62b295f1de458f594c4565f44aeec70b1a75126e.zip
Fix Makefile (docs should build succesfully again now)
(This used to be commit 8f8e6d221c0637c66b20468560f49fc6258156f5)
Diffstat (limited to 'docs/xslt')
-rw-r--r--docs/xslt/yodl.xsl38
1 files changed, 22 insertions, 16 deletions
diff --git a/docs/xslt/yodl.xsl b/docs/xslt/yodl.xsl
index 9752858bce..bac86c826c 100644
--- a/docs/xslt/yodl.xsl
+++ b/docs/xslt/yodl.xsl
@@ -11,7 +11,7 @@
xmlns:exsl="http://exslt.org/common"
version="1.1">
- <xsl:output method="text" encoding="iso-8859-1" standalone="yes"/>
+ <xsl:output method="text" encoding="iso-8859-1" standalone="yes" indent="no"/>
<xsl:strip-space elements="*"/>
<xsl:template match="refentry">
@@ -91,11 +91,7 @@
<xsl:text>paragraph(</xsl:text>
<xsl:value-of select="title"/>
<xsl:text>)&#10;</xsl:text>
- <xsl:for-each select="para">
- <xsl:copy>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:for-each>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="part">
@@ -112,7 +108,13 @@
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="parameter">
+ <xsl:template match="quote">
+ <xsl:text>"</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>"</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="parameter|filename">
<xsl:text>code(</xsl:text>
<xsl:apply-templates/>
<xsl:text>)</xsl:text>
@@ -139,10 +141,10 @@
</xsl:template>
<xsl:template match="refsynopsisdiv">
- manpagesynopsis()
+ <xsl:text>manpagesynopsis()</xsl:text>
</xsl:template>
- <xsl:template match="refsect1">
+ <xsl:template match="refsect1|refsect2">
<xsl:choose>
<xsl:when test="title='DESCRIPTION'">
<xsl:text>&#10;manpagedescription()&#10;&#10;</xsl:text>
@@ -171,11 +173,7 @@
<xsl:text>)&#10;&#10;</xsl:text>
</xsl:otherwise>
</xsl:choose>
- <xsl:for-each select="para">
- <xsl:copy>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:for-each>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="orderedlist">
@@ -206,14 +204,22 @@
<xsl:text>startdit()&#10;</xsl:text>
<xsl:for-each select="varlistentry">
<xsl:text>dit(</xsl:text>
- <xsl:value-of select="term"/>
+ <xsl:copy-of select="term">
+ <xsl:apply-templates/>
+ </xsl:copy-of>
<xsl:text>) </xsl:text>
- <xsl:apply-templates select="listitem"/>
+ <xsl:apply-templates select="listitem/para"/>
<xsl:text>&#10;</xsl:text>
</xsl:for-each>
<xsl:text>enddit()&#10;</xsl:text>
</xsl:template>
+ <xsl:template match="anchor">
+ <xsl:text>label(</xsl:text>
+ <xsl:value-of select="@id"/>
+ <xsl:text>)&#10;</xsl:text>
+ </xsl:template>
+
<xsl:template match="footnote">
<xsl:text>footnote(</xsl:text>
<xsl:apply-templates/>