summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/asciidoc/docbook-xsl/manpage.xsl
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-03-03 15:58:11 +1100
committerChris Johns <chrisj@rtems.org>2013-03-03 15:58:11 +1100
commit0464153b36015012c5a2ff14d6d3f65fe04f476b (patch)
treec877a69503720afce35ee9fc111eb83d3a219c27 /source-builder/sb/asciidoc/docbook-xsl/manpage.xsl
parentImport more of asciidoc. (diff)
downloadrtems-source-builder-0464153b36015012c5a2ff14d6d3f65fe04f476b.tar.bz2
Change asciidoc to the 8.6.4 release package because Windows was broken.
Diffstat (limited to '')
-rw-r--r--source-builder/sb/asciidoc/docbook-xsl/manpage.xsl31
1 files changed, 31 insertions, 0 deletions
diff --git a/source-builder/sb/asciidoc/docbook-xsl/manpage.xsl b/source-builder/sb/asciidoc/docbook-xsl/manpage.xsl
new file mode 100644
index 0000000..b5201a5
--- /dev/null
+++ b/source-builder/sb/asciidoc/docbook-xsl/manpage.xsl
@@ -0,0 +1,31 @@
+<!--
+ Generates single roff manpage document from DocBook XML source using DocBook
+ XSL stylesheets.
+
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
+ rewritten to point to the copy on the local disk drive by the XML catalog
+ rewrite directives so it doesn't need to go out to the Internet for the
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
+ a machine by machine basis.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
+<xsl:import href="common.xsl"/>
+
+<!-- Only render the link text -->
+<xsl:template match="ulink">
+ <xsl:variable name="content">
+ <xsl:apply-templates/>
+ </xsl:variable>
+ <xsl:value-of select="$content"/>
+</xsl:template>
+
+<!-- Don't automatically generate the REFERENCES section -->
+<xsl:template name="endnotes.list">
+</xsl:template>
+<!-- Next entry for backward compatibility with old docbook-xsl versions -->
+<xsl:template name="format.links.list">
+</xsl:template>
+
+</xsl:stylesheet>
+