Skip to content

Commit

Permalink
Normalise xenc namespace without prefix in fallback aggregate
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#110.
  • Loading branch information
iay committed Mar 14, 2017
1 parent fdabcbc commit 2a889b4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mdx/uk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ Status (2017-03-02):

### Fallback Aggregate vs. Production Aggregate

Status (2017-03-10):
Status (2017-03-14):

* the production aggregate implements a _blacklisting_ approach to entity attributes imported from eduGAIN,
while the production aggregate implements the traditional entity attribute _whitelist_. (2017-03-02)
* The production aggregate normalises the `xenc` namespace to not use a prefix, as it is not very commonly used. (2017-02-13)
24 changes: 23 additions & 1 deletion mdx/uk/ns_norm_back.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,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 wayf"
exclude-result-prefixes="alg md 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 @@ -113,5 +114,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 2a889b4

Please sign in to comment.