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

Commit

Permalink
Add a schema for the SDSS/UKf WAYF namespace.
Browse files Browse the repository at this point in the history
This won't actually detect issues in most cases, because the HideFromWAYF element normally appears in locations with "lax" schema validation such as md:Extensions. However, we can use a concrete schema to help XML-aware editors.
  • Loading branch information
iay committed Apr 16, 2015
1 parent 3364936 commit 7bda88d
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,10 @@
<!-- no imports -->
<constructor-arg value="schema/uk-fed-label.xsd"/>
</bean>
<bean parent="ClassPathResource">
<!-- no imports -->
<constructor-arg value="schema/uk-wayf.xsd"/>
</bean>
<bean parent="ClassPathResource">
<!-- imports xenc-schema.xsd -->
<constructor-arg value="schema/ws-authorization.xsd"/>
Expand Down
39 changes: 39 additions & 0 deletions mdx/schema/uk-wayf.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wayf="http://sdss.ac.uk/2006/06/WAYF"
targetNamespace="http://sdss.ac.uk/2006/06/WAYF"
version="2015-04-16"
elementFormDefault="qualified">

<annotation>
<documentation>
This schema describes the WAYF namespace, used internally by the
UK federation for the "HideFromWAYF" label.

For additional information, see the Federation Technical Specification.
</documentation>
</annotation>

<complexType name="basicLabel">
<annotation>
<documentation>
Basic labels are empty elements whose presence or absence
is all that is important.
</documentation>
</annotation>
<!--
No content elements are defined, so a basicLabel may contain
neither text nor nested elements.
-->
</complexType>

<element name="HideFromWAYF" type="wayf:basicLabel">
<annotation>
<documentation>
Indicates an entity which should be hidden from the
Central Discovery Service.
</documentation>
</annotation>
</element>

</schema>
39 changes: 39 additions & 0 deletions xml/uk-wayf.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wayf="http://sdss.ac.uk/2006/06/WAYF"
targetNamespace="http://sdss.ac.uk/2006/06/WAYF"
version="2015-04-16"
elementFormDefault="qualified">

<annotation>
<documentation>
This schema describes the WAYF namespace, used internally by the
UK federation for the "HideFromWAYF" label.

For additional information, see the Federation Technical Specification.
</documentation>
</annotation>

<complexType name="basicLabel">
<annotation>
<documentation>
Basic labels are empty elements whose presence or absence
is all that is important.
</documentation>
</annotation>
<!--
No content elements are defined, so a basicLabel may contain
neither text nor nested elements.
-->
</complexType>

<element name="HideFromWAYF" type="wayf:basicLabel">
<annotation>
<documentation>
Indicates an entity which should be hidden from the
Central Discovery Service.
</documentation>
</annotation>
</element>

</schema>

0 comments on commit 7bda88d

Please sign in to comment.