aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/clean-namespaces.xslt
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-12-08 10:23:33 -0600
committerTed Gould <ted@gould.cx>2010-12-08 10:23:33 -0600
commit76196aa5c6bab4a47d4ed2238bfda9142c5c6ce4 (patch)
treeecebec1e2e180131595eac26a4eeeb493625c768 /libdbusmenu-glib/clean-namespaces.xslt
parentcc7b24b14152407bbaec45924da989bb8692a2c2 (diff)
parent1a73825600508b5d7f027641b05a682a8ac81f5e (diff)
downloadlibdbusmenu-76196aa5c6bab4a47d4ed2238bfda9142c5c6ce4.tar.gz
libdbusmenu-76196aa5c6bab4a47d4ed2238bfda9142c5c6ce4.tar.bz2
libdbusmenu-76196aa5c6bab4a47d4ed2238bfda9142c5c6ce4.zip
Switching from dbus-glib to GDBus
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..8344a71
--- /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.ayatana.org/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>
+