Skip to content

Commit

Permalink
Hoist xenc namespace
Browse files Browse the repository at this point in the history
Resolves ukf/ukf-meta#99.
  • Loading branch information
iay committed Oct 4, 2024
1 parent f5e4cfb commit 39a56a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 110 deletions.
23 changes: 1 addition & 22 deletions mdx/uk/ns_norm_back.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
exclude-result-prefixes="md xenc"
exclude-result-prefixes="md"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

Expand Down Expand Up @@ -114,25 +114,4 @@
</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>
23 changes: 1 addition & 22 deletions mdx/uk/ns_norm_export.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

exclude-result-prefixes="md ukfedlabel xenc"
exclude-result-prefixes="md ukfedlabel"
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 @@ -108,25 +108,4 @@
</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>
23 changes: 1 addition & 22 deletions mdx/uk/ns_norm_export_preview.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

exclude-result-prefixes="md ukfedlabel xenc"
exclude-result-prefixes="md ukfedlabel"
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 @@ -108,25 +108,4 @@
</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>
23 changes: 1 addition & 22 deletions mdx/uk/ns_norm_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

exclude-result-prefixes="md xenc"
exclude-result-prefixes="md"
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 @@ -114,25 +114,4 @@
</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>
23 changes: 1 addition & 22 deletions mdx/uk/ns_norm_uk.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"

exclude-result-prefixes="md xenc"
exclude-result-prefixes="md"
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 @@ -114,25 +114,4 @@
</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 39a56a4

Please sign in to comment.