diff options
author | Leif Johansson <leifj@sunet.se> | 2015-08-21 14:45:27 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-08-21 14:45:27 +0200 |
commit | 63e3ebb09ceef992671129978846552e62df12e6 (patch) | |
tree | e66f86c8c8e6f41fd3aa50382c3198927fa82556 /xslt | |
parent | deee49e7b5e8b6e773a2a200c2bca4729f6970a2 (diff) |
a couple of tools...
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/filter-idp.xslt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xslt/filter-idp.xslt b/xslt/filter-idp.xslt new file mode 100644 index 00000000..868bc1a2 --- /dev/null +++ b/xslt/filter-idp.xslt @@ -0,0 +1,32 @@ +<?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="text()|comment()|@*"> + <xsl:copy/> + </xsl:template> + + <xsl:template match="*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> + </xsl:template> + + +</xsl:stylesheet> |