mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
83 lines
2.3 KiB
XML
83 lines
2.3 KiB
XML
<?xml version='1.0'?>
|
|
<!--
|
|
Convert DocBook to XML validating against the Pearson DTD
|
|
|
|
(C) Jelmer Vernooij <jelmer@samba.org> 2004
|
|
|
|
Released under the GNU GPLv3 or later
|
|
-->
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
|
|
exclude-result-prefixes="doc"
|
|
version="1.1" >
|
|
|
|
<xsl:import href="docbook2pearson.xsl"/>
|
|
|
|
<xsl:strip-space elements="smbconfoption smbconfsection"/>
|
|
|
|
<xsl:template match="smbconfblock/smbconfsection">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:value-of select="."/><xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="smbconfblock/smbconfoption">
|
|
<xsl:text> </xsl:text><xsl:value-of select="@name"/><xsl:text> = </xsl:text><xsl:value-of select="text()"/><xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="smbconfblock">
|
|
<xsl:call-template name="transform.id.attribute"/>
|
|
<listingcode>
|
|
<xsl:apply-templates/>
|
|
</listingcode>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="image">
|
|
<figure>
|
|
<xsl:call-template name="transform.id.attribute"/>
|
|
<description><xsl:value-of select="imagedescription"/></description>
|
|
<figureref>
|
|
<xsl:attribute name="fileref">
|
|
<xsl:value-of select="imagefile"/>
|
|
</xsl:attribute>
|
|
<xsl:if test="@scale != ''">
|
|
<xsl:attribute name="scale">
|
|
<xsl:value-of select="@scale"/>
|
|
</xsl:attribute>
|
|
</xsl:if>
|
|
</figureref>
|
|
</figure>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="smbconfblock/smbconfcomment">
|
|
<xsl:text># </xsl:text><xsl:value-of select="text()"/><xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="smbconfblock/member">
|
|
<xsl:value-of select="text()"/><xsl:text> </xsl:text>
|
|
<xsl:message><xsl:text>Encountered <member> element inside of smbconfblock!</xsl:text></xsl:message>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="filterline">
|
|
<code><xsl:apply-templates/></code>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="smbconfoption">
|
|
<code><xsl:value-of select="@name"/></code>
|
|
<xsl:if test="text() != ''">
|
|
<xsl:text> = </xsl:text>
|
|
<xsl:value-of select="text()"/>
|
|
</xsl:if>
|
|
<xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="smbconfsection">
|
|
<code><xsl:apply-templates/></code>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ntgroup|ntuser">
|
|
<em><xsl:apply-templates/></em>
|
|
</xsl:template>
|
|
<!-- translator -->
|
|
|
|
</xsl:stylesheet>
|