diff options
Diffstat (limited to 'docs/xslt/sambadoc2pearson.xsl')
-rw-r--r-- | docs/xslt/sambadoc2pearson.xsl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/xslt/sambadoc2pearson.xsl b/docs/xslt/sambadoc2pearson.xsl new file mode 100644 index 0000000000..7b03f82950 --- /dev/null +++ b/docs/xslt/sambadoc2pearson.xsl @@ -0,0 +1,37 @@ +<?xml version='1.0'?> +<!-- + Convert DocBook to XML validating against the Pearson DTD + + (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:template match="smbfile"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="smbconfexample/smbconfsection"> + <xsl:value-of select="."/><xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="smbconfexample/smbconfoption"> + <xsl:value-of select="name"/><xsl:text> = </xsl:text><xsl:value-of select="value"/><xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="smbconfexample"> + <listing> + <xsl:if test="title != ''"> + <description><xsl:value-of select="title"/></description> + </xsl:if> + <listingcode> + <xsl:apply-templates/> + </listingcode> + </listing> + </xsl:template> +</xsl:stylesheet> |