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

Commit

Permalink
Extend ukfedlabel:UKFederationMember schema with orgID attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Sep 15, 2016
1 parent c817b77 commit e3261d1
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions 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="2014-07-22"
version="2016-09-15"
elementFormDefault="qualified">

<annotation>
Expand Down Expand Up @@ -43,13 +43,46 @@
</complexContent>
</complexType>

<element name="UKFederationMember" type="ukfedlabel:basicLabel">
<simpleType name="orgIDType">
<restriction base="string">
<annotation>
<documentation>
An organization ID is a string constrained to be the string "ukforg"
followed by a numeric code.

These codes are defined as IDs in the members.xml database, but
are simple strings in entity metadata.
</documentation>
</annotation>
<pattern value="ukforg\d+"/>
</restriction>
</simpleType>

<element name="UKFederationMember">
<annotation>
<documentation>
Indicates an entity whose owner is a member in good standing
of the UK federation.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="ukfedlabel:basicLabel">
<attribute name="orgID" type="ukfedlabel:orgIDType" use="optional">
<annotation>
<documentation>
The orgID attribute is described as "optional" in this schema
so that it can be omitted in published metadata. However, it
is mandatory in entity fragment files.

orgID can become a mandatory attribute if we ever stop
publishing UKFederationMember labels.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</element>

<element name="AccountableUsers" type="ukfedlabel:basicLabel">
Expand Down

0 comments on commit e3261d1

Please sign in to comment.