diff options
author | Leif Johansson <leifj@sunet.se> | 2011-06-08 14:06:47 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-06-08 14:06:47 +0200 |
commit | 7eae5ab0488ca2f738c7b4335883a65a0fdacc78 (patch) | |
tree | ce0bf43210e5b19a3e6d994c9c72281fadf0386f /xslt | |
parent | 7456e475fc5604c0fa11c48f2694060e62514c81 (diff) |
some xslt tools
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/dbg-summary.xslt | 18 | ||||
-rw-r--r-- | xslt/idp-list.xslt | 25 | ||||
-rw-r--r-- | xslt/sp-list.xslt | 25 |
3 files changed, 68 insertions, 0 deletions
diff --git a/xslt/dbg-summary.xslt b/xslt/dbg-summary.xslt new file mode 100644 index 00000000..2550ae03 --- /dev/null +++ b/xslt/dbg-summary.xslt @@ -0,0 +1,18 @@ +<?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:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:import href="summary.xslt"/> + + <xsl:template match="/md:EntitiesDescriptor"> + <xsl:apply-templates select="md:EntityDescriptor"/> + </xsl:template> + +</xsl:stylesheet> diff --git a/xslt/idp-list.xslt b/xslt/idp-list.xslt new file mode 100644 index 00000000..0d18be8a --- /dev/null +++ b/xslt/idp-list.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> diff --git a/xslt/sp-list.xslt b/xslt/sp-list.xslt new file mode 100644 index 00000000..b12c587c --- /dev/null +++ b/xslt/sp-list.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> |