3 Convert DocBook to XML validating against the Pearson DTD
5 (C) Jelmer Vernooij <jelmer@samba.org> 2004
7 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
8 xmlns:
doc=
"http://nwalsh.com/xsl/documentation/1.0"
9 exclude-result-prefixes=
"doc"
12 <xsl:import href=
"docbook2pearson.xsl"/>
14 <xsl:strip-space elements=
"smbconfoption smbconfsection"/>
16 <xsl:template match=
"smbconfblock/smbconfsection">
17 <xsl:text> </xsl:text>
18 <xsl:value-of select=
"."/><xsl:text> </xsl:text>
21 <xsl:template match=
"smbconfblock/smbconfoption">
22 <xsl:text> </xsl:text><xsl:value-of select=
"@name"/><xsl:text> =
</xsl:text><xsl:value-of select=
"text()"/><xsl:text> </xsl:text>
25 <xsl:template match=
"smbconfblock">
26 <xsl:call-template name=
"transform.id.attribute"/>
28 <xsl:apply-templates/>
32 <xsl:template match=
"image">
34 <xsl:call-template name=
"transform.id.attribute"/>
35 <description><xsl:value-of select=
"imagedescription"/></description>
37 <xsl:attribute name=
"fileref">
38 <xsl:value-of select=
"imagefile"/>
40 <xsl:if test=
"@scale != ''">
41 <xsl:attribute name=
"scale">
42 <xsl:value-of select=
"@scale"/>
49 <xsl:template match=
"smbconfblock/smbconfcomment">
50 <xsl:text>#
</xsl:text><xsl:value-of select=
"text()"/><xsl:text> </xsl:text>
53 <xsl:template match=
"smbconfblock/member">
54 <xsl:value-of select=
"text()"/><xsl:text> </xsl:text>
55 <xsl:message><xsl:text>Encountered
<member
> element inside of smbconfblock!
</xsl:text></xsl:message>
58 <xsl:template match=
"filterline">
59 <code><xsl:apply-templates/></code>
62 <xsl:template match=
"smbconfoption">
63 <code><xsl:value-of select=
"@name"/></code>
64 <xsl:if test=
"text() != ''">
65 <xsl:text> =
</xsl:text>
66 <xsl:value-of select=
"text()"/>
68 <xsl:text> </xsl:text>
71 <xsl:template match=
"smbconfsection">
72 <code><xsl:apply-templates/></code>
75 <xsl:template match=
"ntgroup|ntuser">
76 <em><xsl:apply-templates/></em>