| 1 | {{{ |
| 2 | |
| 3 | <xsd:schema xmlns:wrs="http://www.opengis.net/cat/wrs/1.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:sch="http://www.ascc.net/xml/schematron" targetNamespace="http://www.opengis.net/cat/wrs/1.0" elementFormDefault="qualified" version="1.0.0" id="csw-ebrim"> |
| 4 | <xsd:annotation> |
| 5 | <xsd:appinfo> |
| 6 | <sch:pattern id="ComplexSlotValuesPattern" name="ComplexSlotValuesPattern"> |
| 7 | <sch:rule context="//wrs:ValueList"> |
| 8 | <sch:report test="rim:Value">rim:Value not allowed in this context: expected wrs:AnyValue.</sch:report> |
| 9 | </sch:rule> |
| 10 | </sch:pattern> |
| 11 | </xsd:appinfo> |
| 12 | <xsd:documentation xml:lang="en"> Schema for CSW-ebRIM catalogue profile (OGC 07-110r2). </xsd:documentation> |
| 13 | </xsd:annotation> |
| 14 | <xsd:import namespace="http://www.opengis.net/cat/csw/2.0.2" schemaLocation="http://schemas.opengis.net/csw/2.0.2/CSW-publication.xsd"/> |
| 15 | <xsd:import namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" schemaLocation="http://docs.oasis-open.org/regrep/v3.0/schema/rim.xsd"/> |
| 16 | <xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://schemas.opengis.net/xlink/1.0.0/xlinks.xsd"/> |
| 17 | <xsd:import namespace="http://www.opengis.net/ogc" schemaLocation="http://schemas.opengis.net/filter/1.1.0/filter.xsd"/> |
| 18 | <xsd:element name="Capabilities" type="csw:CapabilitiesType"/> |
| 19 | <xsd:element name="RecordId" type="wrs:RecordIdType" substitutionGroup="ogc:_Id" id="RecordId"> |
| 20 | <xsd:annotation> |
| 21 | <xsd:documentation xml:lang="en"> A general record identifier, expressed as an absolute URI that maps to the rim:RegistryObject/@id attribute. It substitutes for the ogc:_Id element in an OGC filter expression. </xsd:documentation> |
| 22 | </xsd:annotation> |
| 23 | </xsd:element> |
| 24 | <xsd:complexType name="RecordIdType" id="RecordIdType" mixed="true"> |
| 25 | <xsd:complexContent mixed="true"> |
| 26 | <xsd:extension base="ogc:AbstractIdType"/> |
| 27 | </xsd:complexContent> |
| 28 | </xsd:complexType> |
| 29 | <xsd:element name="ExtrinsicObject" type="wrs:ExtrinsicObjectType" substitutionGroup="rim:ExtrinsicObject"/> |
| 30 | <xsd:complexType name="ExtrinsicObjectType"> |
| 31 | <xsd:annotation> |
| 32 | <xsd:documentation xml:lang="en"> Extends rim:ExtrinsicObjectType to add the following: 1. MTOM/XOP based attachment support. 2. XLink based reference to a part in a multipart/related message structure. NOTE: This is planned for RegRep 4.0. </xsd:documentation> |
| 33 | </xsd:annotation> |
| 34 | <xsd:complexContent> |
| 35 | <xsd:extension base="rim:ExtrinsicObjectType"> |
| 36 | <xsd:choice minOccurs="0"> |
| 37 | <xsd:element name="repositoryItemRef" type="wrs:SimpleLinkType"/> |
| 38 | <xsd:element name="repositoryItem" type="xsd:base64Binary" xmime:expectedContentTypes="*/*"/> |
| 39 | </xsd:choice> |
| 40 | </xsd:extension> |
| 41 | </xsd:complexContent> |
| 42 | </xsd:complexType> |
| 43 | <xsd:element name="ValueList" type="wrs:ValueListType" substitutionGroup="rim:ValueList"/> |
| 44 | <xsd:complexType name="ValueListType"> |
| 45 | <xsd:annotation> |
| 46 | <xsd:documentation xml:lang="en">Allows complex slot values.</xsd:documentation> |
| 47 | </xsd:annotation> |
| 48 | <xsd:complexContent> |
| 49 | <xsd:extension base="rim:ValueListType"> |
| 50 | <xsd:sequence minOccurs="0" maxOccurs="unbounded"> |
| 51 | <xsd:element ref="wrs:AnyValue"/> |
| 52 | </xsd:sequence> |
| 53 | </xsd:extension> |
| 54 | </xsd:complexContent> |
| 55 | </xsd:complexType> |
| 56 | <xsd:element name="AnyValue" type="wrs:AnyValueType"/> |
| 57 | <xsd:complexType name="AnyValueType" mixed="true"> |
| 58 | <xsd:sequence> |
| 59 | <xsd:any minOccurs="0"/> |
| 60 | </xsd:sequence> |
| 61 | </xsd:complexType> |
| 62 | <xsd:complexType name="SimpleLinkType" id="SimpleLinkType"> |
| 63 | <xsd:annotation> |
| 64 | <xsd:documentation xml:lang="en"> Incorporates the attributes defined for use in simple XLink elements. </xsd:documentation> |
| 65 | </xsd:annotation> |
| 66 | <xsd:attributeGroup ref="xlink:simpleLink"/> |
| 67 | </xsd:complexType> |
| 68 | </xsd:schema> |
| 69 | |
| 70 | }}} |