diff options
Diffstat (limited to 'metadata/xslt')
-rw-r--r-- | metadata/xslt/check_framework.xsl | 26 | ||||
-rw-r--r-- | metadata/xslt/dbg-summary.xslt | 18 | ||||
-rw-r--r-- | metadata/xslt/extract-idp.xslt | 25 | ||||
-rw-r--r-- | metadata/xslt/extract-non-idp.xslt | 25 | ||||
-rw-r--r-- | metadata/xslt/extract-sp.xslt | 25 | ||||
-rw-r--r-- | metadata/xslt/filter-idp.xslt | 32 | ||||
-rw-r--r-- | metadata/xslt/full-summary.xslt | 18 | ||||
-rw-r--r-- | metadata/xslt/idp-list.xslt | 25 | ||||
-rw-r--r-- | metadata/xslt/idp-summary.xslt | 118 | ||||
-rw-r--r-- | metadata/xslt/list-locations.xslt | 21 | ||||
-rw-r--r-- | metadata/xslt/sign-luna-sha256-excl.xsl | 48 | ||||
-rw-r--r-- | metadata/xslt/sign-luna-sha256.xsl | 48 | ||||
-rw-r--r-- | metadata/xslt/sign-luna.xsl | 48 | ||||
-rw-r--r-- | metadata/xslt/sign.xsl | 52 | ||||
-rw-r--r-- | metadata/xslt/sp-summary.xslt | 134 | ||||
-rw-r--r-- | metadata/xslt/summary.xslt | 102 |
16 files changed, 10 insertions, 755 deletions
diff --git a/metadata/xslt/check_framework.xsl b/metadata/xslt/check_framework.xsl index f4e8d017..c5087297 100644 --- a/metadata/xslt/check_framework.xsl +++ b/metadata/xslt/check_framework.xsl @@ -30,23 +30,17 @@ <xsl:message terminate='no'> <xsl:text>[ERROR] </xsl:text> <!-- - If we're processing an aggregate, we need to indicate which - individual entity we're dealing with. + Use an ID if available, otherwise the entityID. --> - <xsl:if test="ancestor-or-self::md:EntitiesDescriptor"> - <!-- - Use an ID if available, otherwise the entityID. - --> - <xsl:choose> - <xsl:when test="$entity/@ID"> - <xsl:value-of select="$entity/@ID"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$entity/@entityID"/> - </xsl:otherwise> - </xsl:choose> - <xsl:text>: </xsl:text> - </xsl:if> + <xsl:choose> + <xsl:when test="$entity/@ID"> + <xsl:value-of select="$entity/@ID"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$entity/@entityID"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>: </xsl:text> <xsl:value-of select="$m"/> </xsl:message> </xsl:template> diff --git a/metadata/xslt/dbg-summary.xslt b/metadata/xslt/dbg-summary.xslt deleted file mode 100644 index 2550ae03..00000000 --- a/metadata/xslt/dbg-summary.xslt +++ /dev/null @@ -1,18 +0,0 @@ -<?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/metadata/xslt/extract-idp.xslt b/metadata/xslt/extract-idp.xslt deleted file mode 100644 index 4858876f..00000000 --- a/metadata/xslt/extract-idp.xslt +++ /dev/null @@ -1,25 +0,0 @@ -<?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:EntityDescriptor[md:AttributeAuthorityDescriptor]"/> - </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/metadata/xslt/extract-non-idp.xslt b/metadata/xslt/extract-non-idp.xslt deleted file mode 100644 index b12c587c..00000000 --- a/metadata/xslt/extract-non-idp.xslt +++ /dev/null @@ -1,25 +0,0 @@ -<?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> diff --git a/metadata/xslt/extract-sp.xslt b/metadata/xslt/extract-sp.xslt deleted file mode 100644 index 058504e3..00000000 --- a/metadata/xslt/extract-sp.xslt +++ /dev/null @@ -1,25 +0,0 @@ -<?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:SPSSODescriptor]"/> - </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/metadata/xslt/filter-idp.xslt b/metadata/xslt/filter-idp.xslt deleted file mode 100644 index 868bc1a2..00000000 --- a/metadata/xslt/filter-idp.xslt +++ /dev/null @@ -1,32 +0,0 @@ -<?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> diff --git a/metadata/xslt/full-summary.xslt b/metadata/xslt/full-summary.xslt deleted file mode 100644 index bf127dfa..00000000 --- a/metadata/xslt/full-summary.xslt +++ /dev/null @@ -1,18 +0,0 @@ -<?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="http://mds.swamid.se/xslt/summary.xslt"/> - - <xsl:template match="/md:EntitiesDescriptor"> - <xsl:apply-templates select="md:EntityDescriptor"/> - </xsl:template> - -</xsl:stylesheet> diff --git a/metadata/xslt/idp-list.xslt b/metadata/xslt/idp-list.xslt deleted file mode 100644 index 0d18be8a..00000000 --- a/metadata/xslt/idp-list.xslt +++ /dev/null @@ -1,25 +0,0 @@ -<?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/metadata/xslt/idp-summary.xslt b/metadata/xslt/idp-summary.xslt deleted file mode 100644 index cc5a5f16..00000000 --- a/metadata/xslt/idp-summary.xslt +++ /dev/null @@ -1,118 +0,0 @@ -<?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:samla="urn:oasis:names:tc:SAML:2.0:assertion" - xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" - xmlns:remd="http://refeds.org/metadata" - xmlns:exsl="http://exslt.org/common" - extension-element-prefixes="exsl" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> - - <xsl:output method="text"/> - <xsl:variable name="eol"> -<xsl:text>|</xsl:text><xsl:text> -</xsl:text> - </xsl:variable> - - <xsl:template name="entity-name"> - <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> - <xsl:if test="contains($h,'/')"> - <xsl:value-of select="substring-before($h,'/')"/> - </xsl:if> - <xsl:if test="not(contains($h,'/'))"> - <xsl:value-of select="$h"/> - </xsl:if> - </xsl:template> - - <xsl:template match="/md:EntitiesDescriptor"> - <xsl:text>||EntityID||Organization||Technical Contact||Support Contact||Security Contact||Administrative Contact||Scopes||Entity category support||Assurance Certification||Registration Authority|| -</xsl:text> - <xsl:apply-templates select="md:EntityDescriptor[md:IDPSSODescriptor]"/> - </xsl:template> - - <xsl:template match="md:EntityDescriptor"> - <xsl:text> | </xsl:text><xsl:value-of select="@entityID"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='support']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@remd:contactType='http://refeds.org/metadata/contactType/security']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:IDPSSODescriptor"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category-support']/samla:AttributeValue"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='urn:oasis:names:tc:SAML:attribute:assurance-certification']/samla:AttributeValue"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdrpi:RegistrationInfo"/> - <xsl:text> | -</xsl:text> - </xsl:template> - - <xsl:template match="mdrpi:RegistrationInfo"> - <xsl:value-of select="@registrationAuthority"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="md:ContactPerson"> - <xsl:apply-templates select="md:EmailAddress"/> - </xsl:template> - - <xsl:template match="md:Organization"> - <xsl:text>[</xsl:text> - <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text><xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> - </xsl:template> - - <xsl:template match="md:IDPSSODescriptor"> - <xsl:apply-templates select="md:Extensions/shibmd:Scope"/> - </xsl:template> - - <xsl:template match="md:EmailAddress"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text><xsl:text> \\</xsl:text> - </xsl:template> - - <xsl:template match="md:OrganizationDisplayName"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="md:OrganizationURL"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="shibmd:Scope"> - <xsl:value-of select="text()"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="samla:AttributeValue"> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="text()" /> - <xsl:with-param name="replace" select="'-'" /> - <xsl:with-param name="by" select="'-'" /> - </xsl:call-template> - <xsl:text> \\</xsl:text> - </xsl:template> - - <xsl:template match="*"/> - <xsl:template match="text()"/> - - <xsl:template name="string-replace-all"> - <xsl:param name="text" /> - <xsl:param name="replace" /> - <xsl:param name="by" /> - <xsl:choose> - <xsl:when test="contains($text, $replace)"> - <xsl:value-of select="substring-before($text,$replace)" /> - <xsl:value-of select="$by" /> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="substring-after($text,$replace)" /> - <xsl:with-param name="replace" select="$replace" /> - <xsl:with-param name="by" select="$by" /> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$text" /> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - -</xsl:stylesheet> diff --git a/metadata/xslt/list-locations.xslt b/metadata/xslt/list-locations.xslt deleted file mode 100644 index fd22fac3..00000000 --- a/metadata/xslt/list-locations.xslt +++ /dev/null @@ -1,21 +0,0 @@ -<?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="text"/> - - <xsl:template match="//*[@Location]"> - <xsl:value-of select="@Location"/><xsl:text> -</xsl:text> - </xsl:template> - <xsl:template match="text()"/> - -</xsl:stylesheet> diff --git a/metadata/xslt/sign-luna-sha256-excl.xsl b/metadata/xslt/sign-luna-sha256-excl.xsl deleted file mode 100644 index 08e48270..00000000 --- a/metadata/xslt/sign-luna-sha256-excl.xsl +++ /dev/null @@ -1,48 +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:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:ds="http://www.w3.org/2000/09/xmldsig#" - xmlns:exsl="http://exslt.org/common" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - 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:EntitiesDescriptor"> - <md:EntitiesDescriptor> - <xsl:apply-templates select="@*|text()|comment()"/> - <ds:Signature> - <ds:SignedInfo> - <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> - <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /> - <ds:Reference> - <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> - <ds:Transforms> - <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> - <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> - </ds:Transforms> - <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> - <ds:DigestValue></ds:DigestValue> - </ds:Reference> - </ds:SignedInfo> - <ds:SignatureValue/> - </ds:Signature> - <xsl:apply-templates/> - </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> diff --git a/metadata/xslt/sign-luna-sha256.xsl b/metadata/xslt/sign-luna-sha256.xsl deleted file mode 100644 index 293bb96d..00000000 --- a/metadata/xslt/sign-luna-sha256.xsl +++ /dev/null @@ -1,48 +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:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:ds="http://www.w3.org/2000/09/xmldsig#" - xmlns:exsl="http://exslt.org/common" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - 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:EntitiesDescriptor"> - <md:EntitiesDescriptor> - <xsl:apply-templates select="@*|text()|comment()"/> - <ds:Signature> - <ds:SignedInfo> - <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> - <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /> - <ds:Reference> - <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> - <ds:Transforms> - <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> - <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> - </ds:Transforms> - <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /> - <ds:DigestValue></ds:DigestValue> - </ds:Reference> - </ds:SignedInfo> - <ds:SignatureValue/> - </ds:Signature> - <xsl:apply-templates/> - </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> diff --git a/metadata/xslt/sign-luna.xsl b/metadata/xslt/sign-luna.xsl deleted file mode 100644 index 48364512..00000000 --- a/metadata/xslt/sign-luna.xsl +++ /dev/null @@ -1,48 +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:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:ds="http://www.w3.org/2000/09/xmldsig#" - xmlns:exsl="http://exslt.org/common" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - 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:EntitiesDescriptor"> - <md:EntitiesDescriptor> - <xsl:apply-templates select="@*|text()|comment()"/> - <ds:Signature> - <ds:SignedInfo> - <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> - <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> - <ds:Reference> - <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> - <ds:Transforms> - <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> - <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> - </ds:Transforms> - <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> - <ds:DigestValue></ds:DigestValue> - </ds:Reference> - </ds:SignedInfo> - <ds:SignatureValue/> - </ds:Signature> - <xsl:apply-templates/> - </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> diff --git a/metadata/xslt/sign.xsl b/metadata/xslt/sign.xsl deleted file mode 100644 index 51d2492a..00000000 --- a/metadata/xslt/sign.xsl +++ /dev/null @@ -1,52 +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:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:ds="http://www.w3.org/2000/09/xmldsig#" - xmlns:exsl="http://exslt.org/common" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - 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:EntitiesDescriptor"> - <md:EntitiesDescriptor> - <xsl:apply-templates select="@*|text()|comment()"/> - <ds:Signature> - <ds:SignedInfo> - <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> - <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> - <ds:Reference> - <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> - <ds:Transforms> - <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> - <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> - </ds:Transforms> - <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> - <ds:DigestValue></ds:DigestValue> - </ds:Reference> - </ds:SignedInfo> - <ds:SignatureValue/> - <ds:KeyInfo> - <ds:X509Data> - </ds:X509Data> - </ds:KeyInfo> - </ds:Signature> - <xsl:apply-templates/> - </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> diff --git a/metadata/xslt/sp-summary.xslt b/metadata/xslt/sp-summary.xslt deleted file mode 100644 index e630c954..00000000 --- a/metadata/xslt/sp-summary.xslt +++ /dev/null @@ -1,134 +0,0 @@ -<?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:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" - xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion" - xmlns:exsl="http://exslt.org/common" - extension-element-prefixes="exsl" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> - - <xsl:output method="text"/> - <xsl:variable name="eol"> -<xsl:text>|</xsl:text><xsl:text> -</xsl:text> - </xsl:variable> - - <xsl:template name="entity-name"> - <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> - <xsl:if test="contains($h,'/')"> - <xsl:value-of select="substring-before($h,'/')"/> - </xsl:if> - <xsl:if test="not(contains($h,'/'))"> - <xsl:value-of select="$h"/> - </xsl:if> - </xsl:template> - - <xsl:template match="/md:EntitiesDescriptor"> - <xsl:text>||EntityID||Service Name||Organization||Contacts||Entity Categories||Assurance Certification||Registration Authority|| -</xsl:text> - <xsl:apply-templates select="md:EntityDescriptor[md:SPSSODescriptor]"/> - </xsl:template> - - <xsl:template match="md:EntityDescriptor"> - <xsl:text> | </xsl:text><xsl:value-of select="@entityID"/> - <xsl:text> | </xsl:text> - <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceName"/><xsl:text> \\ </xsl:text> - <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceDescription"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/> - <xsl:text> | </xsl:text> - <xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/> - <xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/> - <xsl:apply-templates select="md:ContactPerson[@contactType='support']"/> - <xsl:apply-templates select="md:ContactPerson[@contactType='other']"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category']/samla:AttributeValue"/> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='urn:oasis:names:tc:SAML:attribute:assurance-certification']/samla:AttributeValue"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdrpi:RegistrationInfo"/> - <xsl:text> | -</xsl:text> - </xsl:template> - - <xsl:template match="mdrpi:RegistrationInfo"> - <xsl:value-of select="@registrationAuthority"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="md:AttributeConsumingService"> - <xsl:apply-templates/> - </xsl:template> - - <xsl:template match="md:ServiceName|md:ServiceDescription"> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="text()" /> - <xsl:with-param name="replace" select="'|'" /> - <xsl:with-param name="by" select="'\|'" /> - </xsl:call-template> - </xsl:template> - - <xsl:template match="samla:AttributeValue"> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="text()" /> - <xsl:with-param name="replace" select="'-'" /> - <xsl:with-param name="by" select="'-'" /> - </xsl:call-template> - <xsl:text> \\</xsl:text> - </xsl:template> - - <xsl:template match="md:ContactPerson"> - <xsl:value-of select="@contactType"/><xsl:text>: </xsl:text><xsl:apply-templates select="md:EmailAddress"/> - </xsl:template> - - <xsl:template match="md:Organization"> - <xsl:text>[</xsl:text> - <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text> - <xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> - </xsl:template> - - <xsl:template match="md:SPPSSODescriptor"> - <xsl:apply-templates select="md:Extensions/shibmd:Scope"/> - </xsl:template> - - <xsl:template match="md:EmailAddress"> - <xsl:text>[</xsl:text><xsl:value-of select="text()"/><xsl:text>] \\</xsl:text> - </xsl:template> - - <xsl:template match="md:OrganizationDisplayName"> - <xsl:value-of select="normalize-space(text())"/> - </xsl:template> - - <xsl:template match="md:OrganizationURL"> - <xsl:value-of select="normalize-space(text())"/> - </xsl:template> - - <xsl:template match="shibmd:Scope"> - <xsl:value-of select="text()"/><xsl:text> </xsl:text> - </xsl:template> - - - <xsl:template match="*"/> - <xsl:template match="text()"/> - - <xsl:template name="string-replace-all"> - <xsl:param name="text" /> - <xsl:param name="replace" /> - <xsl:param name="by" /> - <xsl:choose> - <xsl:when test="contains($text, $replace)"> - <xsl:value-of select="substring-before($text,$replace)" /> - <xsl:value-of select="$by" /> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="substring-after($text,$replace)" /> - <xsl:with-param name="replace" select="$replace" /> - <xsl:with-param name="by" select="$by" /> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$text" /> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - -</xsl:stylesheet> diff --git a/metadata/xslt/summary.xslt b/metadata/xslt/summary.xslt deleted file mode 100644 index 05152d13..00000000 --- a/metadata/xslt/summary.xslt +++ /dev/null @@ -1,102 +0,0 @@ -<?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:output method="text"/> - <xsl:variable name="eol"> -<xsl:text>|</xsl:text><xsl:text> -</xsl:text> - </xsl:variable> - - <xsl:template name="entity-name"> - <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> - <xsl:if test="contains($h,'/')"> - <xsl:value-of select="substring-before($h,'/')"/> - </xsl:if> - <xsl:if test="not(contains($h,'/'))"> - <xsl:value-of select="$h"/> - </xsl:if> - </xsl:template> - - <xsl:template match="md:EntityDescriptor"> - <xsl:text>h2. </xsl:text><xsl:call-template name="entity-name"/><xsl:text> -</xsl:text> - <xsl:text>||EntityID|</xsl:text><xsl:value-of select="@entityID"/><xsl:value-of select="$eol"/> - <xsl:apply-templates select="md:IDPSSODescriptor"/> - <xsl:apply-templates select="md:SPSSODescriptor"/> - <xsl:apply-templates select="md:Organization"/> - <xsl:apply-templates select="md:ContactPerson"/> - <xsl:text> -</xsl:text> - <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService"/><xsl:text> -</xsl:text> - <xsl:text>[Supplemental documentation|</xsl:text><xsl:call-template name="entity-name"/><xsl:text>] -</xsl:text> - <xsl:text> -</xsl:text> - </xsl:template> - - <xsl:template match="md:ContactPerson[@contactType='technical']"> - <xsl:text>||Technical contact|</xsl:text> - <xsl:apply-templates select="md:EmailAddress"/> - <xsl:value-of select="$eol"/> - </xsl:template> - - <xsl:template match="md:ContactPerson[@contactType='administrative']"> - <xsl:text>||Administrative contact|</xsl:text> - <xsl:apply-templates select="md:EmailAddress"/> - <xsl:value-of select="$eol"/> - </xsl:template> - - <xsl:template match="md:Organization"> - <xsl:text>||Organization|[</xsl:text> - <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text><xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> - <xsl:value-of select="$eol"/> - </xsl:template> - - <xsl:template match="md:SPSSODescriptor"> - <xsl:text>||Role|Service Provider</xsl:text><xsl:value-of select="$eol"/> - </xsl:template> - - <xsl:template match="md:AttributeConsumingService"> - <xsl:apply-templates/> - </xsl:template> - - <xsl:template match="md:ServiceDescription"> - <xsl:text>{info}</xsl:text><xsl:value-of select="text()"/><xsl:text>{info}</xsl:text> - </xsl:template> - - <xsl:template match="md:IDPSSODescriptor"> - <xsl:text>||Role|Identity Provider</xsl:text><xsl:value-of select="$eol"/> - <xsl:text>||Scopes|</xsl:text><xsl:apply-templates select="md:Extensions/shibmd:Scope"/><xsl:value-of select="$eol"/> - </xsl:template> - - <xsl:template match="md:EmailAddress"> - <xsl:value-of select="text()"/> - </xsl:template> - - <xsl:template match="md:OrganizationDisplayName"> - <xsl:value-of select="text()"/> - </xsl:template> - - <xsl:template match="md:OrganizationURL"> - <xsl:value-of select="text()"/> - </xsl:template> - - <xsl:template match="shibmd:Scope"> - <xsl:text>* </xsl:text><xsl:value-of select="text()"/><xsl:text> -</xsl:text> - </xsl:template> - - - <xsl:template match="*"/> - <xsl:template match="text()"/> - -</xsl:stylesheet> |