- From: Gaurav Kathotia <gauravka@in.ibm.com>
- Date: Fri, 29 Mar 2002 07:00:47 -0700
- To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
hello
While Checking an .XSD file with IBM SchemaQualityChecker, i get
numerous errors , all of which are of the same type, i:e
" The reference ObjRef( /* which is a ComplexType element in my .XSD file
*/)
uses the empty string as its prefix . But there is no namespace declaration
which associates the empty string
with a namespace .
To fix the problem, you may add the attribute "xmlns" in the root
element <<schema>>"
Now my <<schema>> looks like this.
<xsd:schema
xmlns:xsd="http://www.w3.org/2002/XMLSchema"
targetNamespace="http://wat-eu-2.watson.ibm.com/~mspreitz/wsstk"
xmlns:tns="http://wat-eu-2.watson.ibm.com/~mspreitz/wsstk"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
>
And a possible source of error reference is contained in the below lines:
<xsd:complexType name="ObjRef">
<xsd:attribute name="ref" type="xsd:anyURI" use="required" />
<xsd:attribute name="role" type="xsd:NMTOKEN" />
</xsd:complexType>
<xsd:complexType name="NamedObjRef">
<xsd:complexContent>
<xsd:extension base="ObjRef">
<xsd:attribute name="name" type="xsd:NMTOKEN" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Could Anyone suggest the remedy for this ?
I would be utterly thankful
Gaurav Kathotia
Received on Friday, 29 March 2002 14:49:40 UTC