summaryrefslogtreecommitdiff
path: root/metadata/xslt/extract-sp.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'metadata/xslt/extract-sp.xslt')
-rw-r--r--metadata/xslt/extract-sp.xslt25
1 files changed, 25 insertions, 0 deletions
diff --git a/metadata/xslt/extract-sp.xslt b/metadata/xslt/extract-sp.xslt
new file mode 100644
index 00000000..058504e3
--- /dev/null
+++ b/metadata/xslt/extract-sp.xslt
@@ -0,0 +1,25 @@
+<?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:exsl="http://exslt.org/common"
+ extension-element-prefixes="exsl"
+ 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:template match="/md:EntitiesDescriptor">
+ <md:EntitiesDescriptor>
+ <xsl:apply-templates select="md:EntityDescriptor[md:SPSSODescriptor]"/>
+ </md:EntitiesDescriptor>
+ </xsl:template>
+
+ <xsl:template match="md:EntityDescriptor">
+ <xi:include><xsl:attribute name="href"><xsl:value-of select="@xml:base"/></xsl:attribute></xi:include>
+ </xsl:template>
+
+</xsl:stylesheet>