Start working on samba-specific conversion script to pearson XML
[Samba.git] / docs / xslt / sambadoc2pearson.xsl
blob7b03f829505c6075a6d1553e6431679febd2c28b
1 <?xml version='1.0'?>
2 <!--
3 Convert DocBook to XML validating against the Pearson DTD
5 (C) Jelmer Vernooij <jelmer@samba.org> 2004
6 -->
7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8 xmlns:exsl="http://exslt.org/common"
9 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
10 exclude-result-prefixes="doc"
11 version="1.1" >
13 <xsl:import href="docbook2pearson.xsl"/>
15 <xsl:template match="smbfile">
16 <xsl:apply-templates/>
17 </xsl:template>
19 <xsl:template match="smbconfexample/smbconfsection">
20 <xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
21 </xsl:template>
23 <xsl:template match="smbconfexample/smbconfoption">
24 <xsl:value-of select="name"/><xsl:text> = </xsl:text><xsl:value-of select="value"/><xsl:text>&#10;</xsl:text>
25 </xsl:template>
27 <xsl:template match="smbconfexample">
28 <listing>
29 <xsl:if test="title != ''">
30 <description><xsl:value-of select="title"/></description>
31 </xsl:if>
32 <listingcode>
33 <xsl:apply-templates/>
34 </listingcode>
35 </listing>
36 </xsl:template>
37 </xsl:stylesheet>