summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-12-10 21:13:53 +0100
committerLeif Johansson <leifj@sunet.se>2010-12-10 21:13:53 +0100
commit09b9802d7ae7dc752af5d415345f20da3a6e19d3 (patch)
tree466bc3e6f2bad89c3cf42550e99f443e1d5be8d2
parent00cb74ed69223c7a35014d9d354092d34fc68bd4 (diff)
a small xsl to clean away harmful @ID attribute
-rw-r--r--xslt/clean-entitydescriptor.xsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/xslt/clean-entitydescriptor.xsl b/xslt/clean-entitydescriptor.xsl
new file mode 100644
index 00000000..d4ef16ff
--- /dev/null
+++ b/xslt/clean-entitydescriptor.xsl
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+ xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:shibmd="urn:mace:shibboleth:metadata:1.0">
+
+ <xsl:template match="@ID"/>
+
+ <xsl:template match="text()|comment()|@*">
+ <xsl:copy/>
+ </xsl:template>
+
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:apply-templates select="node()|@*"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>