Benutzung von 'restriction base' in XML Schema

S

sgasper

Hallo!

Ich versuche in Oracle ein laut XMLSpy gültiges XML Schema zu registrieren und erhalte immer Fehlermeldung:

ORA-31154: Ungültiges XML-Dokument
ORA-19202: Fehler bei XML-Verarbeitung
LSX-00172: "pointMember" ist keine gültige Einschränkung von "geometryMember"
aufgetreten
ORA-06512: in "XDB.DBMS_XMLSCHEMA_INT", Zeile 3
ORA-06512: in "XDB.DBMS_XMLSCHEMA", Zeile 12
ORA-06512: in Zeile 2


Auszüge aus dem Schema sind:

<schema targetNamespace="http://www.opengis.net/gml"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
elementFormDefault="qualified" version="2.1.1">

<!-- bring in the XLink attributes -->
<import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.w3.org/1999/xlink/xlinks.xsd"/>
<!-- ==============================================================
global declarations
=================================================================== -->
<!-- ...... -->

<element name="geometryMember" type="gml:GeometryAssociationType"/>
<element name="pointMember" type="gml:pointMemberType" substitutionGroup="gml:geometryMember"/>

<!-- ....... -->

<!-- this attribute gives the location where an element is defined -->
<attributeGroup name="AssociationAttributeGroup">
<annotation>
<documentation>
These attributes can be attached to any element, thus allowing it
to act as a pointer. The "remoteSchema" attribute allows an element
that carries link attributes to indicate that the element is declared
in a remote schema rather than by the schema that constrains the
current document instance.
</documentation>
</annotation>
<attributeGroup ref="xlink:simpleLink"/>
<attribute name="remoteSchema" type="anyURI" use="optional"/>
</attributeGroup>
<complexType name="GeometryAssociationType">
<annotation>
<documentation>
An instance of this type (e.g. a geometryMember) can either
enclose or point to a primitive geometry element. When serving
as a simple link that references a remote geometry instance,
the value of the gml:remoteSchema attribute can be used to
locate a schema fragment that constrains the target instance.
</documentation>
</annotation>
<sequence minOccurs="0">
<element ref="gml:_Geometry"/>
</sequence>
<attributeGroup ref="xlink:simpleLink"/>
<attribute name="remoteSchema" type="anyURI" use="optional"/>
<!--attributeGroup ref="gml:AssociationAttributeGroup"/-->
</complexType>
<complexType name="PointMemberType">
<annotation>
<documentation>Restricts the geometry member to being a Point instance.</documentation>
</annotation>
<complexContent>
<restriction base="gml:GeometryAssociationType">
<sequence minOccurs="0">
<element ref="gml:point"/>
</sequence>
<attributeGroup ref="xlink:simpleLink"/>
</restriction>
</complexContent>
</complexType>


Wenn mir jemand weiterhelfen könnte, wäre ich sehr dankbar!
 

Neue Beiträge

Zurück