summaryrefslogtreecommitdiff
path: root/metadata/xslt/clean-entitydescriptor.xsl
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
commit467dbdbf3d7212e25ee69daeaadd8adba7c7c5b8 (patch)
treed3576d5f2d4b5cc676c0a12ef8f8c3c83b474bf5 /metadata/xslt/clean-entitydescriptor.xsl
parentbc1d55080e5d42e6ef2bba892d640aa8f68bbc90 (diff)
Moved files to make ths repo signed
Diffstat (limited to 'metadata/xslt/clean-entitydescriptor.xsl')
-rw-r--r--metadata/xslt/clean-entitydescriptor.xsl30
1 files changed, 30 insertions, 0 deletions
diff --git a/metadata/xslt/clean-entitydescriptor.xsl b/metadata/xslt/clean-entitydescriptor.xsl
new file mode 100644
index 00000000..c1c31df9
--- /dev/null
+++ b/metadata/xslt/clean-entitydescriptor.xsl
@@ -0,0 +1,30 @@
+<?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:output method="xml" indent="yes" encoding="UTF-8"/>
+ <xsl:param name="indent-increment" select="' '"/>
+ <xsl:strip-space elements="*" />
+
+ <xsl:template match="@ID"/>
+ <xsl:template match="@validUntil"/>
+ <xsl:template match="@cacheDuration"/>
+ <xsl:template match="ds:Signature"/>
+
+ <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>