summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-11-03 10:21:32 +0100
committerLeif Johansson <leifj@sunet.se>2011-11-03 10:21:32 +0100
commitf4db70ebd31ea5e8c8a2c568f09517dba4aef4c3 (patch)
tree7b2b075b72c3dfdf7a52725952a03210a8f30c2d /xslt
parent6e89b53eb236d60f385e51415ebbc01a5ab34d72 (diff)
a combined feed for discovery services
Diffstat (limited to 'xslt')
-rw-r--r--xslt/extract-idp.xslt25
1 files changed, 25 insertions, 0 deletions
diff --git a/xslt/extract-idp.xslt b/xslt/extract-idp.xslt
new file mode 100644
index 00000000..32824386
--- /dev/null
+++ b/xslt/extract-idp.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:IDPSSODescriptor]"/>
+ </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>