source: exist/trunk/xquery/molesAtom1.0.xsd @ 4426

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/molesAtom1.0.xsd@4426
Revision 4426, 1.5 KB checked in by cbyrom, 11 years ago (diff)

Create schemas to represent the new moles format. NB, add Atom schema
separately, to future proof validation - i.e. allowing atoms to be used
and validated by the system + add moles2 schema to define the additional
'non-atom' like elements required + add molesAtom1.0 to bring the two
together - redefining elements of the Atom schema with the moles2.0 one.

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<xs:schema targetNamespace="http://www.w3.org/2005/Atom" elementFormDefault="qualified"
3    attributeFormDefault="unqualified"  xmlns:xs="http://www.w3.org/2001/XMLSchema"
4    xmlns:moles="http://ndg.nerc.ac.uk/schema/moles2beta" xmlns:atom="http://www.w3.org/2005/Atom"
5    xmlns:georss="http://www.georss.org/georss/10">
6    <xs:annotation>
7        <xs:documentation>
8            This schema represents the moles2.0 specification
9        </xs:documentation>
10    </xs:annotation>
11        <!-- NB, to use this schema, need to set the schemaLocations to point to
12        a valid, accessible version of moles2.0.xsd and atom1.0.xsd -->
13    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd" />
14    <xs:import namespace="http://www.georss.org/georss/10" schemaLocation="http://georss.cn/xml/1.0/georss.xsd" />
15    <xs:import namespace="http://ndg.nerc.ac.uk/schema/moles2beta" schemaLocation="moles2.0.xsd" />
16
17        <!-- redefine the atom entry contents - to include the required additional data -->
18    <xs:redefine schemaLocation="atom1.0.xsd">
19        <xs:group name="entryGroup">
20            <xs:choice>
21                <xs:group ref="atom:entryGroup"/>
22                <xs:element ref="moles:entity" minOccurs="1" maxOccurs="1"/>
23                <xs:element ref="moles:temporalRange" minOccurs="1" maxOccurs="1"/>
24                <xs:element ref="georss:where" minOccurs="1" maxOccurs="1"/>
25            </xs:choice>
26        </xs:group>
27    </xs:redefine>
28</xs:schema>
Note: See TracBrowser for help on using the repository browser.