Skip to content

Commit

Permalink
Add schema location for idpdisc namespace.
Browse files Browse the repository at this point in the history
When normalising idpdisc elements, use an explicit namespace prefix.
  • Loading branch information
iay committed May 11, 2011
1 parent 6962a42 commit dee7d9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/import.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
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:idp-discovery-protocol ../xml/sstc-saml-idp-discovery.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
http://ukfederation.org.uk/2006/11/label ../xml/uk-fed-label.xsd
Expand Down Expand Up @@ -330,12 +331,12 @@
Normalise namespace prefix, add missing Binding attribute.
-->
<xsl:template match="idpdisc:DiscoveryResponse">
<DiscoveryResponse xmlns="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol">
<idpdisc:DiscoveryResponse>
<xsl:if test="not(@Binding)">
<xsl:attribute name="Binding">urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="node()|@*"/>
</DiscoveryResponse>
</idpdisc:DiscoveryResponse>
</xsl:template>


Expand Down

0 comments on commit dee7d9b

Please sign in to comment.