summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-05 13:20:54 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:04 -0500
commit71a7ae33e635ed654ccbfd0453a407a3fbb00bc7 (patch)
tree736287818ee8d8c98f8da697482bd4065bd9b11d /docs
parent9cc8ba875de086f84745e58fe09546ed6ae84ef5 (diff)
downloadsamba-71a7ae33e635ed654ccbfd0453a407a3fbb00bc7.tar.gz
samba-71a7ae33e635ed654ccbfd0453a407a3fbb00bc7.tar.bz2
samba-71a7ae33e635ed654ccbfd0453a407a3fbb00bc7.zip
Start working on samba-specific conversion script to pearson XML
(This used to be commit 4c1aa1723fee757c25f9f6322e7b6905fc4a973a)
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile.in4
-rw-r--r--docs/manpages/ntlm_auth.1.xml2
-rw-r--r--docs/xslt/docbook2pearson.xsl (renamed from docs/xslt/pearson.xsl)0
-rw-r--r--docs/xslt/sambadoc2pearson.xsl37
4 files changed, 40 insertions, 3 deletions
diff --git a/docs/Makefile.in b/docs/Makefile.in
index ad46ad2f57..14fe7a87ea 100644
--- a/docs/Makefile.in
+++ b/docs/Makefile.in
@@ -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)
diff --git a/docs/manpages/ntlm_auth.1.xml b/docs/manpages/ntlm_auth.1.xml
index 3e7365ce2f..ef3e84d374 100644
--- a/docs/manpages/ntlm_auth.1.xml
+++ b/docs/manpages/ntlm_auth.1.xml
@@ -103,7 +103,7 @@
<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
diff --git a/docs/xslt/pearson.xsl b/docs/xslt/docbook2pearson.xsl
index 0324ef5ca8..0324ef5ca8 100644
--- a/docs/xslt/pearson.xsl
+++ b/docs/xslt/docbook2pearson.xsl
diff --git a/docs/xslt/sambadoc2pearson.xsl b/docs/xslt/sambadoc2pearson.xsl
new file mode 100644
index 0000000000..7b03f82950
--- /dev/null
+++ b/docs/xslt/sambadoc2pearson.xsl
@@ -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>