You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Jean-Louis Vila <jl...@cosmosbay.com> on 2000/06/28 16:05:54 UTC

How can I validate a Schema with Schema for Schema

Hi,

The subject is a good summed up but in fact I've
a problem when I validate a Schema with Schema for Schema.

Here the atomic example:
<xsd:schema
	xmlns:xsd="http://www.w3.org/1999/XMLSchema"
	xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/1999/XMLSchema XMLSchema.xsd">
	<xsd:element name="aName" >
		<xsd:complexType content="empty"/>
	</xsd:element>
</xsd:schema>

I try to validate it with Xerces 1.1.2/DOMParser (No CVS applied).
The Schema for Schema comes from W3C site.

And the result is :
[myDomParser:Error] atomic.xsd:13:2: Element type "xsd:schema" must be
declared.
[Error] attribute xmlns:xsd not found in element type xsd:schema
etc...

Where the mistake ?
Thanks,
Jean-Louis Vila