diff options
author | Björn Mattsson <bjorn@sunet.se> | 2023-03-06 11:22:05 +0100 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2023-03-06 11:22:05 +0100 |
commit | 467dbdbf3d7212e25ee69daeaadd8adba7c7c5b8 (patch) | |
tree | d3576d5f2d4b5cc676c0a12ef8f8c3c83b474bf5 /xslt/add-rpi.xsl | |
parent | bc1d55080e5d42e6ef2bba892d640aa8f68bbc90 (diff) |
Moved files to make ths repo signed
Diffstat (limited to 'xslt/add-rpi.xsl')
-rw-r--r-- | xslt/add-rpi.xsl | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/xslt/add-rpi.xsl b/xslt/add-rpi.xsl deleted file mode 100644 index 0740b06d..00000000 --- a/xslt/add-rpi.xsl +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet version="1.0" - xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" - xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" - xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion" - xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init" - xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol" - xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui" - xmlns:ds="http://www.w3.org/2000/09/xmldsig#" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:exsl="http://exslt.org/common" - extension-element-prefixes="exsl" - xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> - - <xsl:output method="xml" indent="yes" encoding="UTF-8"/> - - <xsl:template match="md:EntityDescriptor"> - <md:EntityDescriptor> - <xsl:apply-templates select="@*"/> - <xsl:if test="not(md:Extensions)"> - <md:Extensions><xsl:call-template name="add-swamid-ri"/></md:Extensions> - </xsl:if> - <xsl:apply-templates select="text()|comment()|md:Extensions|md:RoleDescriptor|md:IDPSSODescriptor|md:SPSSODescriptor|md:AuthnAuthorityDescriptor|md:AttributeAuthorityDescriptor|md:PDPDescriptor|md:AffiliationDescriptor"/> - <xsl:apply-templates select="md:Organization"/> - <xsl:apply-templates select="md:ContactPerson"/> - <xsl:apply-templates select="md:AdditionalMetadataLocation"/> - </md:EntityDescriptor> - </xsl:template> - - <xsl:template match="md:EntityDescriptor/md:Extensions"> - <md:Extensions> - <xsl:call-template name="add-swamid-ri"/> - <xsl:apply-templates select="text()|comment()|node()"/> - </md:Extensions> - </xsl:template> - - <xsl:template name="add-swamid-ri"> - <xsl:if test="not(mdrpi:RegistrationInfo[@registrationAuthority])"> - <mdrpi:RegistrationInfo> - <xsl:attribute name="registrationAuthority">http://www.swamid.se/</xsl:attribute> - <xsl:attribute name="registrationInstant"><xsl:value-of select="$regDate"/></xsl:attribute> - <mdrpi:RegistrationPolicy xml:lang="en">http://swamid.se/policy/mdrps</mdrpi:RegistrationPolicy> - </mdrpi:RegistrationInfo> - </xsl:if> - </xsl:template> - - <xsl:template match="@xml:base|@ID|@validUntil|@cacheDuration"/> - - <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> |