Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Normalise the xenc namespace without defining a prefix so that we don…
Browse files Browse the repository at this point in the history
…'t exceed metadatatool's limits.
  • Loading branch information
iay committed Feb 6, 2014
1 parent 1e03511 commit 3276469
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion mdx/uk/ns_norm_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns:wayf="http://sdss.ac.uk/2006/06/WAYF"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

exclude-result-prefixes="alg md mdattr saml"
exclude-result-prefixes="alg md mdattr saml xenc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
Expand Down Expand Up @@ -112,5 +113,26 @@
</xsl:element>
</xsl:template>


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


<!--
xenc:*
Normalise namespace to not use a prefix.
-->
<xsl:template match="xenc:*">
<xsl:element name="{local-name()}" namespace="http://www.w3.org/2001/04/xmlenc#">
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
</xsl:template>


</xsl:stylesheet>

0 comments on commit 3276469

Please sign in to comment.