Skip to content

Commit

Permalink
Normalise alg:*.
Browse files Browse the repository at this point in the history
Normalise md:EncryptionMethod.
  • Loading branch information
iay committed May 10, 2011
1 parent 285e2a3 commit afa0b72
Showing 1 changed file with 94 additions and 2 deletions.
96 changes: 94 additions & 2 deletions build/import.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init"
Expand All @@ -40,7 +41,7 @@

xmlns:xalan="http://xml.apache.org/xalan"

exclude-result-prefixes="idpdisc init md xalan"
exclude-result-prefixes="alg idpdisc init md xalan"

xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

Expand All @@ -60,6 +61,7 @@
<xsl:text>&#10;</xsl:text>
<EntityDescriptor ID="uk000000_CHANGE_THIS"
xsi:schemaLocation="urn:oasis:names:tc:SAML:2.0:metadata ../xml/saml-schema-metadata-2.0.xsd
urn:oasis:names:tc:SAML:metadata:algsupport ../xml/sstc-saml-metadata-algsupport-v1.0.xsd
urn:oasis:names:tc:SAML:metadata:ui ../xml/sstc-saml-metadata-ui-v1.0.xsd
urn:oasis:names:tc:SAML:profiles:SSO:request-init ../xml/sstc-request-initiation.xsd
urn:mace:shibboleth:metadata:1.0 ../xml/shibboleth-metadata-1.0.xsd
Expand Down Expand Up @@ -203,7 +205,6 @@
</EntityDescriptor>
</xsl:template>


<!--
md:AttributeConsumingService
Expand All @@ -216,6 +217,18 @@
</xsl:template>


<!--
md:EncryptionMethod
Normalise namespace prefix.
-->
<xsl:template match="md:EncryptionMethod">
<EncryptionMethod>
<xsl:apply-templates select="node()|@*"/>
</EncryptionMethod>
</xsl:template>


<!--
md:IDPSSODescriptor
Expand Down Expand Up @@ -410,6 +423,48 @@
</xsl:template>


<!--
*************************************
*** ***
*** A L G N A M E S P A C E ***
*** ***
*************************************
-->


<!--
alg:DigestMethod
Normalise namespace prefix.
-->
<xsl:template match="alg:DigestMethod">
<alg:DigestMethod>
<xsl:apply-templates select="node()|@*"/>
</alg:DigestMethod>
</xsl:template>


<!--
alg:SigningMethod
Normalise namespace prefix.
-->
<xsl:template match="alg:SigningMethod">
<alg:SigningMethod>
<xsl:apply-templates select="node()|@*"/>
</alg:SigningMethod>
</xsl:template>


<!--
***********************************
*** ***
*** D S N A M E S P A C E ***
*** ***
***********************************
-->


<!--
ds:KeyInfo
Expand Down Expand Up @@ -476,6 +531,15 @@
</xsl:template>


<!--
*********************************************
*** ***
*** I D P D I S C N A M E S P A C E ***
*** ***
*********************************************
-->


<!--
idpdisc:DiscoveryResponse
Expand All @@ -491,6 +555,15 @@
</xsl:template>


<!--
***************************************
*** ***
*** I N I T N A M E S P A C E ***
*** ***
***************************************
-->


<!--
init:RequestInitiator
Expand All @@ -503,6 +576,15 @@
</xsl:template>


<!--
*******************************************
*** ***
*** S H I B M D N A M E S P A C E ***
*** ***
*******************************************
-->


<!--
shibmd:Scope
Expand All @@ -514,6 +596,16 @@
</shibmd:Scope>
</xsl:template>


<!--
*********************************************
*** ***
*** D E F A U L T T E M P L A T E S ***
*** ***
*********************************************
-->


<!--By default, copy text blocks, comments and attributes unchanged.-->
<xsl:template match="text()|comment()|@*">
<xsl:copy/>
Expand Down

0 comments on commit afa0b72

Please sign in to comment.