Start working on samba-specific conversion script to pearson XML
authorJelmer Vernooij <jelmer@samba.org>
Tue, 5 Oct 2004 13:20:54 +0000 (13:20 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 5 Oct 2004 13:20:54 +0000 (13:20 +0000)
Makefile.in
manpages/ntlm_auth.1.xml
xslt/docbook2pearson.xsl [moved from xslt/pearson.xsl with 100% similarity]
xslt/sambadoc2pearson.xsl [new file with mode: 0644]

index ad46ad2f57c67c460ad8759691ab071b124e3e77..14fe7a87eacc8bda1d4b1c95a8bc0069bb5cdbdd 100644 (file)
@@ -228,9 +228,9 @@ $(MANDIR)/%: $(DOCBOOKDIR)/%.xml xslt/man.xsl
 
 # Pearson compatible XML
 
-$(PEARSONDIR)/%.xml: $(DOCBOOKDIR)/%.xml xslt/pearson.xsl
+$(PEARSONDIR)/%.xml: %/index.xml xslt/pearson.xsl
        mkdir -p $(@D)
-       $(XSLTPROC) --xinclude --output $@ xslt/pearson.xsl $<
+       $(XSLTPROC) --xinclude --output $@ xslt/sambadoc2pearson.xsl $<
 
 $(PEARSONDIR)/%.report.html: $(PEARSONDIR)/%.xml
        mkdir -p $(@D)
index 3e7365ce2f5bfe50a765098a343294dc8cf8e24a..ef3e84d374a3acf43d12c53f1ee4aaa1808c2d86 100644 (file)
              <varlistentry>
                <term>ntlmssp-client-1</term>
                <listitem><para>
-                Cleint-side helper for use with arbitary external
+                Client-side helper for use with arbitary external
                programs that may wish to use Samba's NTLMSSP 
                authentication knowlege. </para>
                  <para>This helper is a client, and as such may be run by any
similarity index 100%
rename from xslt/pearson.xsl
rename to xslt/docbook2pearson.xsl
diff --git a/xslt/sambadoc2pearson.xsl b/xslt/sambadoc2pearson.xsl
new file mode 100644 (file)
index 0000000..7b03f82
--- /dev/null
@@ -0,0 +1,37 @@
+<?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:exsl="http://exslt.org/common"
+       xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
+       exclude-result-prefixes="doc"
+       version="1.1" >
+
+       <xsl:import href="docbook2pearson.xsl"/>
+
+       <xsl:template match="smbfile">
+               <xsl:apply-templates/>
+       </xsl:template>
+
+       <xsl:template match="smbconfexample/smbconfsection">
+               <xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
+       </xsl:template>
+
+       <xsl:template match="smbconfexample/smbconfoption">
+               <xsl:value-of select="name"/><xsl:text> = </xsl:text><xsl:value-of select="value"/><xsl:text>&#10;</xsl:text>
+       </xsl:template>
+
+       <xsl:template match="smbconfexample">
+          <listing>
+                  <xsl:if test="title != ''">
+                          <description><xsl:value-of select="title"/></description>
+                  </xsl:if>
+                  <listingcode>
+                          <xsl:apply-templates/>
+                  </listingcode>
+               </listing>
+       </xsl:template>
+</xsl:stylesheet>