summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Apperly <jim@rabbitmq.com>2010-10-28 13:02:50 +0100
committerJim Apperly <jim@rabbitmq.com>2010-10-28 13:02:50 +0100
commit65dda2491e8a4af8b07d57c7825840db27c912c9 (patch)
treed7d1e9019f406a8ddbdc99b305f8ff8b01e50cba
parent61a38c3a0028ea401055db599d1e00bdd978e128 (diff)
downloadrabbitmq-server-65dda2491e8a4af8b07d57c7825840db27c912c9.tar.gz
backed out previous changes to man page stylesheet
-rw-r--r--docs/html-to-website-xml.xsl25
1 files changed, 11 insertions, 14 deletions
diff --git a/docs/html-to-website-xml.xsl b/docs/html-to-website-xml.xsl
index 305f76fa..c325bb5a 100644
--- a/docs/html-to-website-xml.xsl
+++ b/docs/html-to-website-xml.xsl
@@ -1,9 +1,6 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://www.rabbitmq.com/namespaces/ad-hoc/doc"
- xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="html"
version='1.0'>
<xsl:param name="original"/>
@@ -18,9 +15,9 @@
</xsl:template>
<!-- Copy the root node, and munge the outer part of the page -->
-<xsl:template match="/html:html">
+<xsl:template match="/html">
<xsl:processing-instruction name="xml-stylesheet">type="text/xml" href="page.xsl"</xsl:processing-instruction>
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:doc="http://www.rabbitmq.com/namespaces/ad-hoc/doc">
+<html xmlns:doc="http://www.rabbitmq.com/namespaces/ad-hoc/doc">
<head>
<title><xsl:value-of select="document($original)/refentry/refnamediv/refname"/><xsl:if test="document($original)/refentry/refmeta/manvolnum">(<xsl:value-of select="document($original)/refentry/refmeta/manvolnum"/>)</xsl:if> manual page</title>
</head>
@@ -52,7 +49,7 @@
<doc:heading>Table of Contents</doc:heading>
</doc:toc>
- <xsl:apply-templates select="html:body/html:div[@class='refentry']"/>
+ <xsl:apply-templates select="body/div[@class='refentry']"/>
</doc:div>
</body>
</html>
@@ -60,32 +57,32 @@
<!-- Specific instructions to revert the DocBook HTML to be more like our ad-hoc XML schema -->
-<xsl:template match="html:div[@class='refsect1'] | html:div[@class='refnamediv'] | html:div[@class='refsynopsisdiv']">
- <doc:section name="{html:h2}">
+<xsl:template match="div[@class='refsect1'] | div[@class='refnamediv'] | div[@class='refsynopsisdiv']">
+ <doc:section name="{h2}">
<xsl:apply-templates select="node()"/>
</doc:section>
</xsl:template>
-<xsl:template match="html:div[@class='refsect2']">
- <doc:subsection name="{html:h3}">
+<xsl:template match="div[@class='refsect2']">
+ <doc:subsection name="{h3}">
<xsl:apply-templates select="node()"/>
</doc:subsection>
</xsl:template>
-<xsl:template match="html:h2 | html:h3">
+<xsl:template match="h2 | h3">
<doc:heading>
<xsl:apply-templates select="node()"/>
</doc:heading>
</xsl:template>
-<xsl:template match="html:pre[@class='screen']">
+<xsl:template match="pre[@class='screen']">
<pre class="sourcecode">
<xsl:apply-templates select="node()"/>
</pre>
</xsl:template>
-<xsl:template match="html:div[@class='cmdsynopsis']">
- <div class="cmdsynopsis" id="{html:p/html:code[@class='command']}">
+<xsl:template match="div[@class='cmdsynopsis']">
+ <div class="cmdsynopsis" id="{p/code[@class='command']}">
<xsl:apply-templates select="node()"/>
</div>
</xsl:template>