Module: sip-router
Branch: master
Commit: aae2c1f4b05b297bc4e459cc91cc9f57485e5f94
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aae2c1f…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Oct 1 16:29:14 2009 +0200
doc: serdoc2man.xsl revived
serdoc2man.xsl is still needed for the ser modules that have
manpages.
---
doc/stylesheets/serdoc2man.xsl | 111 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 111 insertions(+), 0 deletions(-)
diff --git a/doc/stylesheets/serdoc2man.xsl b/doc/stylesheets/serdoc2man.xsl
new file mode 100644
index 0000000..6de062c
--- /dev/null
+++ b/doc/stylesheets/serdoc2man.xsl
@@ -0,0 +1,111 @@
+<?xml version='1.0'?>
+<!-- vim: sw=2 sta et
+-->
+
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
+
xmlns:serdoc="http://sip-router.org/xml/serdoc"
+
xmlns="http://docbook2x.sourceforge.net/xmlns/Man-XML"
+ exclude-result-prefixes="doc"
+ version='1.0'
+ xml:lang="en">
+
+<!-- Don't include stuff with role="admin-guide" -->
+<xsl:template match="* [@role='admin-guide']" />
+
+<!-- Get the docbook2man XSLT -->
+<xsl:include
href="http://docbook2x.sourceforge.net/latest/xslt/man/docbook.xsl&quo… />
+
+
+<xsl:template match="serdoc:todo">
+ <para>
+ <xsl:text>TODO</xsl:text>
+ </para>
+</xsl:template>
+
+<xsl:template match="serdoc:link">
+ <xsl:call-template name="inline-bold" />
+</xsl:template>
+
+<xsl:template match="serdoc:func">
+ <xsl:call-template name="inline-bold-monospace"/>
+ <xsl:text>()</xsl:text>
+</xsl:template>
+
+<xsl:template match="serdoc:module">
+ <xsl:call-template name="inline-bold-monospace"/>
+ <xsl:text>(7)</xsl:text>
+</xsl:template>
+
+<xsl:template match="serdoc:modparam">
+ <xsl:call-template name="inline-bold-monospace"/>
+</xsl:template>
+
+<xsl:template match="serdoc:coreparam">
+ <xsl:call-template name="inline-bold-monospace"/>
+</xsl:template>
+
+<xsl:template match="serdoc:field">
+ <xsl:call-template name="inline-bold-monospace"/>
+</xsl:template>
+
+<xsl:template match="serdoc:bin">
+ <xsl:call-template name="inline-bold-monospace"/>
+ <xsl:text>(1)</xsl:text>
+</xsl:template>
+
+<xsl:template match="serdoc:sbin">
+ <xsl:call-template name="inline-bold-monospace"/>
+ <xsl:text>(8)</xsl:text>
+</xsl:template>
+
+<xsl:template match="serdoc:file">
+ <xsl:call-template name="inline-bold-monospace"/>
+ <xsl:text>(5)</xsl:text>
+</xsl:template>
+
+<xsl:template match="serdoc:prototype">
+ <xsl:call-template name="inline-bold-monospace"/>
+</xsl:template>
+
+<xsl:template match="serdoc:paraminfo">
+ <para>
+ <xsl:apply-templates />
+ </para>
+</xsl:template>
+
+<xsl:template match="serdoc:paramtype">
+ <br />
+ <xsl:text>Type: </xsl:text>
+ <xsl:apply-templates />
+</xsl:template>
+
+<xsl:template match="serdoc:paramdefault">
+ <br />
+ <xsl:text>Default: </xsl:text>
+ <xsl:apply-templates />
+</xsl:template>
+
+<xsl:template match="serdoc:fieldinfo">
+ <para>
+ <xsl:apply-templates />
+ </para>
+</xsl:template>
+
+<xsl:template match="serdoc:fieldsql">
+ <br />
+ <xsl:text>Type: </xsl:text>
+ <xsl:call-template name="inline-monospace" />
+</xsl:template>
+
+
+
+<xsl:template match="optional">
+ <xsl:text>[</xsl:text>
+ <xsl:apply-templates />
+ <xsl:text>]</xsl:text>
+</xsl:template>
+
+
+
+</xsl:stylesheet>