aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/clean-namespaces.xslt
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-07 16:43:15 -0600
committerTed Gould <ted@gould.cx>2011-02-07 16:43:15 -0600
commit3fab4873c00572044ddc8447d5aa0f3d2d9f8cd1 (patch)
treec8b2bb68005950073192a67da33ba998554fa58c /libdbusmenu-glib/clean-namespaces.xslt
parentfd954bb9d7e00405e23acd03a7dda5d97fb66e02 (diff)
parent9c5089892566097a42c8dd75b9eb79a81b57b1e9 (diff)
downloadlibdbusmenu-3fab4873c00572044ddc8447d5aa0f3d2d9f8cd1.tar.gz
libdbusmenu-3fab4873c00572044ddc8447d5aa0f3d2d9f8cd1.tar.bz2
libdbusmenu-3fab4873c00572044ddc8447d5aa0f3d2d9f8cd1.zip
Updating to trunk
Diffstat (limited to 'libdbusmenu-glib/clean-namespaces.xslt')
-rw-r--r--libdbusmenu-glib/clean-namespaces.xslt14
1 files changed, 14 insertions, 0 deletions
diff --git a/libdbusmenu-glib/clean-namespaces.xslt b/libdbusmenu-glib/clean-namespaces.xslt
new file mode 100644
index 0000000..8c0c521
--- /dev/null
+++ b/libdbusmenu-glib/clean-namespaces.xslt
@@ -0,0 +1,14 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dox="http://www.canonical.com/dbus/dox.dtd">
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*" />
+ </xsl:copy>
+ </xsl:template>
+ <xsl:template match="@dox:*|dox:*"/>
+ <xsl:template match="*">
+ <xsl:element name="{local-name()}">
+ <xsl:apply-templates select="@* | node()"/>
+ </xsl:element>
+ </xsl:template>
+</xsl:stylesheet>
+