summaryrefslogtreecommitdiff
path: root/docs/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-05 13:20:54 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:04 -0500
commit71a7ae33e635ed654ccbfd0453a407a3fbb00bc7 (patch)
tree736287818ee8d8c98f8da697482bd4065bd9b11d /docs/xslt
parent9cc8ba875de086f84745e58fe09546ed6ae84ef5 (diff)
downloadsamba-71a7ae33e635ed654ccbfd0453a407a3fbb00bc7.tar.gz
samba-71a7ae33e635ed654ccbfd0453a407a3fbb00bc7.tar.bz2
samba-71a7ae33e635ed654ccbfd0453a407a3fbb00bc7.zip
Start working on samba-specific conversion script to pearson XML
(This used to be commit 4c1aa1723fee757c25f9f6322e7b6905fc4a973a)
Diffstat (limited to 'docs/xslt')
-rw-r--r--docs/xslt/docbook2pearson.xsl (renamed from docs/xslt/pearson.xsl)0
-rw-r--r--docs/xslt/sambadoc2pearson.xsl37
2 files changed, 37 insertions, 0 deletions
diff --git a/docs/xslt/pearson.xsl b/docs/xslt/docbook2pearson.xsl
index 0324ef5ca8..0324ef5ca8 100644
--- a/docs/xslt/pearson.xsl
+++ b/docs/xslt/docbook2pearson.xsl
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>&#10;</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>&#10;</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>