diff options
| author | Simon MacMullen <simon@lshift.net> | 2010-03-12 13:49:50 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@lshift.net> | 2010-03-12 13:49:50 +0000 |
| commit | 76c0bf22a9117e04735f69bac80543ab3e1e4601 (patch) | |
| tree | 52463d4b0d9ee1b2490aadf4d16c24dc2411139c /docs | |
| parent | 0f391d502030f4cad2a3d07b737a01eeb1e66fda (diff) | |
| download | rabbitmq-server-git-76c0bf22a9117e04735f69bac80543ab3e1e4601.tar.gz | |
Remove DOCTYPE with --novalid and namespaces with XSLT.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/remove-namespaces.xsl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/remove-namespaces.xsl b/docs/remove-namespaces.xsl new file mode 100644 index 0000000000..58a1e826d2 --- /dev/null +++ b/docs/remove-namespaces.xsl @@ -0,0 +1,17 @@ +<?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" + version='1.0'> + +<xsl:output method="xml" /> + + <!-- Copy every element through with local name only --> + <xsl:template match="*"> + <xsl:element name="{local-name()}"> + <xsl:apply-templates select="@*|node()"/> + </xsl:element> + </xsl:template> + + <!-- Copy every attribute through --> + <xsl:template match="@*"><xsl:copy/></xsl:template> +</xsl:stylesheet> |
