diff options
author | Gerald W. Carter <jerry@samba.org> | 2008-04-22 10:09:40 -0500 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:47:48 -0500 |
commit | 8f8a9f01909ba29e2b781310baeeaaddc3f15f0d (patch) | |
tree | 90c6b720ad3a7bc815245c0ef28820424f89d658 /docs-xml/xslt/sambadoc2pearson.xsl | |
parent | 197238246389c40edc60c6630d18d6913086e630 (diff) | |
download | samba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.tar.gz samba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.tar.xz samba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.zip |
Moving docs tree to docs-xml to make room for generated docs in the release tarball.
(This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14)
Diffstat (limited to 'docs-xml/xslt/sambadoc2pearson.xsl')
-rw-r--r-- | docs-xml/xslt/sambadoc2pearson.xsl | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/docs-xml/xslt/sambadoc2pearson.xsl b/docs-xml/xslt/sambadoc2pearson.xsl new file mode 100644 index 00000000000..d7124193755 --- /dev/null +++ b/docs-xml/xslt/sambadoc2pearson.xsl @@ -0,0 +1,80 @@ +<?xml version='1.0'?> +<!-- + Convert DocBook to XML validating against the Pearson DTD + + (C) Jelmer Vernooij <jelmer@samba.org> 2004 +--> +<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> |