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

Commit

Permalink
Normalise xenc namespace without prefix in production, wayf and expor…
Browse files Browse the repository at this point in the history
…t preview aggregates

See ukf/ukf-meta#110.
  • Loading branch information
iay committed Feb 13, 2017
1 parent 54623c0 commit 1461ae8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 7 deletions.
10 changes: 5 additions & 5 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-10):
Status (2017-02-13):

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

## Production Maturity Pipeline

Expand Down Expand Up @@ -59,15 +59,14 @@ when it appeared in the fallback aggregate, which would be too late to take corr

### Test Aggregate vs. Production Aggregate

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

* the test aggregate implements a _blacklisting_ approach to entity attributes imported from eduGAIN,
while the production aggregate implements the traditional entity attribute _whitelist_.
* The test aggregate normalises the `xenc` namespace to not use a prefix, as it is not very commonly used.

### Fallback Aggregate vs. Production Aggregate

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

* The production aggregate defines the `saml` namespace prefix (used by entity attributes) on the document element
instead of in each SAML `<Attribute>`. (2017-02-08)
Expand All @@ -76,3 +75,4 @@ instead of in each `<EntityAttributes>` element. (2017-02-08)
* the production aggregate no longer implements the "key use" fixup required for pre-1.3.1 Shibboleth SPs.
This adds the `use="signing"` XML attribute to `<KeyDescriptor>` elements present in IdP metadata
without a `use` attribute. It is not needed for later releases of the Shibboleth SP. (2017-02-10)
* 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_export_preview.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>
24 changes: 23 additions & 1 deletion mdx/uk/ns_norm_uk.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 1461ae8

Please sign in to comment.