Skip to content

Commit

Permalink
Bugzilla 694: rationalise use of shibmeta vs. shibmd namespace prefixes
Browse files Browse the repository at this point in the history
First pass at this involving active normalisation of the prefix used, and *both* prefixes declared at document level.
  • Loading branch information
iay committed Jun 22, 2010
1 parent 3ec876a commit afd7943
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion build/uk_master_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wayf="http://sdss.ac.uk/2006/06/WAYF"
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
Expand Down Expand Up @@ -149,6 +150,22 @@
<xsl:template match="ukfedlabel:*">
<!-- do nothing -->
</xsl:template>

<!--
Normalise namespace on Shibboleth metadata elements.
-->

<xsl:template match="shibmd:Scope">
<shibmd:Scope>
<xsl:apply-templates select="node()|@*"/>
</shibmd:Scope>
</xsl:template>

<xsl:template match="shibmd:KeyAuthority">
<shibmd:KeyAuthority>
<xsl:apply-templates select="node()|@*"/>
</shibmd:KeyAuthority>
</xsl:template>

<!--
Remove administrative contacts.
Expand Down

0 comments on commit afd7943

Please sign in to comment.