diff options
author | Leif Johansson <leifj@sunet.se> | 2011-06-10 00:05:06 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-06-10 00:05:06 +0200 |
commit | c31518f0ea25d464fccf7d109ef8ae050cff72c3 (patch) | |
tree | 5977bbe83ad911e0c8a56bc132eef33685639913 /xslt/extract-non-idp.xslt | |
parent | 41820db4f58341575b776570c0e138d79552d156 (diff) |
ignore autogenerated backport file
Diffstat (limited to 'xslt/extract-non-idp.xslt')
-rw-r--r-- | xslt/extract-non-idp.xslt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/xslt/extract-non-idp.xslt b/xslt/extract-non-idp.xslt new file mode 100644 index 00000000..b12c587c --- /dev/null +++ b/xslt/extract-non-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[not(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> |