| 1 | <?xml version='1.0'?>
|
|---|
| 2 | <!--
|
|---|
| 3 | Convert DocBook to XML validating against the Pearson DTD
|
|---|
| 4 |
|
|---|
| 5 | (C) Jelmer Vernooij <jelmer@samba.org> 2004
|
|---|
| 6 |
|
|---|
| 7 | Released under the GNU GPLv3 or later
|
|---|
| 8 | -->
|
|---|
| 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"
|
|---|
| 12 | version="1.1" >
|
|---|
| 13 |
|
|---|
| 14 | <xsl:import href="docbook2pearson.xsl"/>
|
|---|
| 15 |
|
|---|
| 16 | <xsl:strip-space elements="smbconfoption smbconfsection"/>
|
|---|
| 17 |
|
|---|
| 18 | <xsl:template match="smbconfblock/smbconfsection">
|
|---|
| 19 | <xsl:text> </xsl:text>
|
|---|
| 20 | <xsl:value-of select="."/><xsl:text> </xsl:text>
|
|---|
| 21 | </xsl:template>
|
|---|
| 22 |
|
|---|
| 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>
|
|---|
| 25 | </xsl:template>
|
|---|
| 26 |
|
|---|
| 27 | <xsl:template match="smbconfblock">
|
|---|
| 28 | <xsl:call-template name="transform.id.attribute"/>
|
|---|
| 29 | <listingcode>
|
|---|
| 30 | <xsl:apply-templates/>
|
|---|
| 31 | </listingcode>
|
|---|
| 32 | </xsl:template>
|
|---|
| 33 |
|
|---|
| 34 | <xsl:template match="image">
|
|---|
| 35 | <figure>
|
|---|
| 36 | <xsl:call-template name="transform.id.attribute"/>
|
|---|
| 37 | <description><xsl:value-of select="imagedescription"/></description>
|
|---|
| 38 | <figureref>
|
|---|
| 39 | <xsl:attribute name="fileref">
|
|---|
| 40 | <xsl:value-of select="imagefile"/>
|
|---|
| 41 | </xsl:attribute>
|
|---|
| 42 | <xsl:if test="@scale != ''">
|
|---|
| 43 | <xsl:attribute name="scale">
|
|---|
| 44 | <xsl:value-of select="@scale"/>
|
|---|
| 45 | </xsl:attribute>
|
|---|
| 46 | </xsl:if>
|
|---|
| 47 | </figureref>
|
|---|
| 48 | </figure>
|
|---|
| 49 | </xsl:template>
|
|---|
| 50 |
|
|---|
| 51 | <xsl:template match="smbconfblock/smbconfcomment">
|
|---|
| 52 | <xsl:text># </xsl:text><xsl:value-of select="text()"/><xsl:text> </xsl:text>
|
|---|
| 53 | </xsl:template>
|
|---|
| 54 |
|
|---|
| 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>
|
|---|
| 58 | </xsl:template>
|
|---|
| 59 |
|
|---|
| 60 | <xsl:template match="filterline">
|
|---|
| 61 | <code><xsl:apply-templates/></code>
|
|---|
| 62 | </xsl:template>
|
|---|
| 63 |
|
|---|
| 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()"/>
|
|---|
| 69 | </xsl:if>
|
|---|
| 70 | <xsl:text> </xsl:text>
|
|---|
| 71 | </xsl:template>
|
|---|
| 72 |
|
|---|
| 73 | <xsl:template match="smbconfsection">
|
|---|
| 74 | <code><xsl:apply-templates/></code>
|
|---|
| 75 | </xsl:template>
|
|---|
| 76 |
|
|---|
| 77 | <xsl:template match="ntgroup|ntuser">
|
|---|
| 78 | <em><xsl:apply-templates/></em>
|
|---|
| 79 | </xsl:template>
|
|---|
| 80 | <!-- translator -->
|
|---|
| 81 |
|
|---|
| 82 | </xsl:stylesheet>
|
|---|