W3C XML Schema Validation Problem
Hello, if I am getting the validation error in xmlSpy:
'wfs:BaseRequestType' must refer to an existing simple or complex type
for the schema with below snippet (see 2 bolded most-relevent lines):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:wfs="http://www.opengis.net/wfs"xmlns:ogc="http://www.opengis.net/ogc"
>
<xs:element name="GetFeature" type="wfs:GetFeatureType"/>
<xs:complexType name="GetFeatureType">
<xs:complexContent>
<xs:extension base="wfs:BaseRequestType"><xs:sequence>
<xs:element ref="wfs:Query" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="resultType" type="wfs:ResultTypeType" use="optional" default="results"/>
<xs:attribute name="outputFormat" type="xs:string" use="optional" default="text/xml; subtype=3.1.1"/>
<xs:attribute name="maxFeatures" type="xs:positiveInteger" use="optional"/>
<xs:attribute name="traverseXlinkDepth" type="xs:string" use="optional"/>
<xs:attribute name="traverseXlinkExpiry" type="xs:positiveInteger" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
.
.
.
what is the likely problem? I would think that with the "wfs=" namespace reference (near top of snippet) present, then the tool should be able to resolve the type. I am getting similar errors, in fact, for all lines with either "wfs: â and âogc: â. Any help is appreciated. Thank you.
|