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

Commit

Permalink
Normalise xenc namespace without prefix in export aggregate
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#110.
  • Loading branch information
iay committed Feb 14, 2017
1 parent 7ed0dcb commit f8e9458
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mdx/uk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ before being included in the `export` version consumed by interfederation partne

### Export Preview Aggregate vs. Export Aggregate

Status (2017-02-13):
Status (2017-02-14):

* The export preview aggregate normalises the `xenc` namespace to not use a prefix, as it is not very commonly used. (2017-02-13)
* These aggregates are currently identical.

## Production Maturity Pipeline

Expand Down
24 changes: 23 additions & 1 deletion mdx/uk/ns_norm_export.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,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 ukfedlabel wayf"
exclude-result-prefixes="alg md ukfedlabel wayf 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 @@ -107,5 +108,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 f8e9458

Please sign in to comment.