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

Commit

Permalink
Add ExportOptOut extension element.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jul 22, 2014
1 parent 2611f64 commit 1d29932
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
11 changes: 10 additions & 1 deletion mdx/schema/uk-fed-label.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
targetNamespace="http://ukfederation.org.uk/2006/11/label"
version="2008-06-24"
version="2014-07-22"
elementFormDefault="qualified">

<annotation>
Expand Down Expand Up @@ -124,4 +124,13 @@
</annotation>
</element>

<element name="ExportOptOut" type="ukfedlabel:datedLabel">
<annotation>
<documentation>
Indicates that the entity has been opted-out from inclusion in
the UK federation export aggregate.
</documentation>
</annotation>
</element>

</schema>
12 changes: 12 additions & 0 deletions mdx/uk/check_ukreg.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
-->
<xsl:stylesheet version="1.0"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:mdxMail="xalan://uk.ac.sdss.xalan.md.Mail"
Expand Down Expand Up @@ -93,4 +94,15 @@
</xsl:template>


<!--
Check for entities which are both opted in to and opted out from export.
-->
<xsl:template match="md:EntityDescriptor/md:Extensions[ukfedlabel:ExportOptIn][ukfedlabel:ExportOptOut]">
<xsl:call-template name="error">
<xsl:with-param name="m">
<xsl:text>entity cannot be both opted in to and opted out from export</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>
11 changes: 10 additions & 1 deletion xml/uk-fed-label.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
targetNamespace="http://ukfederation.org.uk/2006/11/label"
version="2008-06-24"
version="2014-07-22"
elementFormDefault="qualified">

<annotation>
Expand Down Expand Up @@ -124,4 +124,13 @@
</annotation>
</element>

<element name="ExportOptOut" type="ukfedlabel:datedLabel">
<annotation>
<documentation>
Indicates that the entity has been opted-out from inclusion in
the UK federation export aggregate.
</documentation>
</annotation>
</element>

</schema>

0 comments on commit 1d29932

Please sign in to comment.