summaryrefslogtreecommitdiffstats
path: root/docs-xml/xslt/sambadoc2pearson.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'docs-xml/xslt/sambadoc2pearson.xsl')
-rw-r--r--docs-xml/xslt/sambadoc2pearson.xsl82
1 files changed, 82 insertions, 0 deletions
diff --git a/docs-xml/xslt/sambadoc2pearson.xsl b/docs-xml/xslt/sambadoc2pearson.xsl
new file mode 100644
index 0000000..6100889
--- /dev/null
+++ b/docs-xml/xslt/sambadoc2pearson.xsl
@@ -0,0 +1,82 @@
+<?xml version='1.0'?>
+<!--
+ Convert DocBook to XML validating against the Pearson DTD
+
+ (C) Jelmer Vernooij <jelmer@samba.org> 2004
+
+ Released under the GNU GPLv3 or later
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ 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="smbconfblock/smbconfsection">
+ <xsl:text>&#10;</xsl:text>
+ <xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="smbconfblock/smbconfoption">
+ <xsl:text> </xsl:text><xsl:value-of select="@name"/><xsl:text> = </xsl:text><xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
+ </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="smbconfblock/smbconfcomment">
+ <xsl:text># </xsl:text><xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="smbconfblock/member">
+ <xsl:value-of select="text()"/><xsl:text>&#10;</xsl:text>
+ <xsl:message><xsl:text>Encountered &lt;member&gt; element inside of 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="text() != ''">
+ <xsl:text> = </xsl:text>
+ <xsl:value-of select="text()"/>
+ </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>