summaryrefslogtreecommitdiff
path: root/docs/xslt/sambadoc2pearson.xsl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-05 21:33:36 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:04 -0500
commit0360d172eb095d905c94ccc01a681311744c3284 (patch)
tree4470e0419663fc661a5274282403e26f526a05af /docs/xslt/sambadoc2pearson.xsl
parentad803aed90636c1905fd15b7ea31428c8290f7af (diff)
downloadsamba-0360d172eb095d905c94ccc01a681311744c3284.tar.gz
samba-0360d172eb095d905c94ccc01a681311744c3284.tar.bz2
samba-0360d172eb095d905c94ccc01a681311744c3284.zip
Finish docbook to pearson conversion scripts. I still need to look at
getting internal links correctly though. (This used to be commit e8f126731f975e82779aa3bf7947971a36de083b)
Diffstat (limited to 'docs/xslt/sambadoc2pearson.xsl')
-rw-r--r--docs/xslt/sambadoc2pearson.xsl69
1 files changed, 65 insertions, 4 deletions
diff --git a/docs/xslt/sambadoc2pearson.xsl b/docs/xslt/sambadoc2pearson.xsl
index 7b03f82950..d187d268c6 100644
--- a/docs/xslt/sambadoc2pearson.xsl
+++ b/docs/xslt/sambadoc2pearson.xsl
@@ -5,33 +5,94 @@
(C) Jelmer Vernooij <jelmer@samba.org> 2004
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
exclude-result-prefixes="doc"
version="1.1" >
<xsl:import href="docbook2pearson.xsl"/>
+ <xsl:strip-space elements="smbconfoption smbconfsection"/>
+
<xsl:template match="smbfile">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="smbconfexample/smbconfsection">
+ <xsl:template match="smbconfexample/smbconfsection|smbconfblock/smbconfsection">
+ <xsl:text>&#10;</xsl:text>
<xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
</xsl:template>
- <xsl:template match="smbconfexample/smbconfoption">
+ <xsl:template match="smbconfexample/smbconfoption|smbconfblock/smbconfoption">
<xsl:value-of select="name"/><xsl:text> = </xsl:text><xsl:value-of select="value"/><xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="smbconfexample">
+ <!-- <xsl:call-template name="transform.id.attribute"/>-->
<listing>
<xsl:if test="title != ''">
<description><xsl:value-of select="title"/></description>
</xsl:if>
<listingcode>
- <xsl:apply-templates/>
+ <xsl:for-each select="smbconfoption|smbconfsection|smbconfcomment">
+ <xsl:apply-templates select="."/>
+ </xsl:for-each>
</listingcode>
</listing>
</xsl:template>
+
+ <xsl:template match="smbconfblock">
+ <xsl:call-template name="transform.id.attribute"/>
+ <listingcode>
+ <xsl:apply-templates/>
+ </listingcode>
+ </xsl:template>
+
+ <xsl:template match="image">
+ <figure>
+ <xsl:call-template name="transform.id.attribute"/>
+ <description><xsl:value-of select="imagedescription"/></description>
+ <figureref>
+ <xsl:attribute name="fileref">
+ <xsl:value-of select="imagefile"/>
+ </xsl:attribute>
+ <xsl:if test="@scale != ''">
+ <xsl:attribute name="scale">
+ <xsl:value-of select="@scale"/>
+ </xsl:attribute>
+ </xsl:if>
+ </figureref>
+ </figure>
+ </xsl:template>
+
+ <xsl:template match="smbconfexample/smbconfcomment|smbconfblock/smbconfcomment">
+ <xsl:text># </xsl:text><xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="smbconfexample/member|smbconfblock/member">
+ <xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
+ <xsl:message><xsl:text>Encountered &lt;member&gt; element inside of smbconfexample/smbconfblock!</xsl:text></xsl:message>
+ </xsl:template>
+
+ <xsl:template match="filterline">
+ <code><xsl:apply-templates/></code>
+ </xsl:template>
+
+ <xsl:template match="smbconfoption">
+ <code><xsl:value-of select="name"/></code>
+ <xsl:if test="value != ''">
+ <xsl:text> = </xsl:text>
+ <xsl:value-of select="value"/>
+ </xsl:if>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="smbconfsection">
+ <code><xsl:apply-templates/></code>
+ </xsl:template>
+
+ <xsl:template match="ntgroup|ntuser">
+ <em><xsl:apply-templates/></em>
+ </xsl:template>
+ <!-- translator -->
+
</xsl:stylesheet>