3 Convert DocBook to XML validating against the Pearson DTD
5 (C) Jelmer Vernooij <jelmer@samba.org> 2004
7 Released under the GNU GPLv3 or later
9 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
10 xmlns:
doc=
"http://nwalsh.com/xsl/documentation/1.0"
11 exclude-result-prefixes=
"doc"
14 <xsl:import href=
"docbook2pearson.xsl"/>
16 <xsl:strip-space elements=
"smbconfoption smbconfsection"/>
18 <xsl:template match=
"smbconfblock/smbconfsection">
19 <xsl:text> </xsl:text>
20 <xsl:value-of select=
"."/><xsl:text> </xsl:text>
23 <xsl:template match=
"smbconfblock/smbconfoption">
24 <xsl:text> </xsl:text><xsl:value-of select=
"@name"/><xsl:text> =
</xsl:text><xsl:value-of select=
"text()"/><xsl:text> </xsl:text>
27 <xsl:template match=
"smbconfblock">
28 <xsl:call-template name=
"transform.id.attribute"/>
30 <xsl:apply-templates/>
34 <xsl:template match=
"image">
36 <xsl:call-template name=
"transform.id.attribute"/>
37 <description><xsl:value-of select=
"imagedescription"/></description>
39 <xsl:attribute name=
"fileref">
40 <xsl:value-of select=
"imagefile"/>
42 <xsl:if test=
"@scale != ''">
43 <xsl:attribute name=
"scale">
44 <xsl:value-of select=
"@scale"/>
51 <xsl:template match=
"smbconfblock/smbconfcomment">
52 <xsl:text>#
</xsl:text><xsl:value-of select=
"text()"/><xsl:text> </xsl:text>
55 <xsl:template match=
"smbconfblock/member">
56 <xsl:value-of select=
"text()"/><xsl:text> </xsl:text>
57 <xsl:message><xsl:text>Encountered
<member
> element inside of smbconfblock!
</xsl:text></xsl:message>
60 <xsl:template match=
"filterline">
61 <code><xsl:apply-templates/></code>
64 <xsl:template match=
"smbconfoption">
65 <code><xsl:value-of select=
"@name"/></code>
66 <xsl:if test=
"text() != ''">
67 <xsl:text> =
</xsl:text>
68 <xsl:value-of select=
"text()"/>
70 <xsl:text> </xsl:text>
73 <xsl:template match=
"smbconfsection">
74 <code><xsl:apply-templates/></code>
77 <xsl:template match=
"ntgroup|ntuser">
78 <em><xsl:apply-templates/></em>