|
top
|
 Subject: Re: Namespaces and Validation (XML Schema) Author: (Deleted User) Date: 12 Sep 2001 08:49 AM
|
Hi Thomas,
At 08.27 12/09/2001 -0400, you wrote:
>[..]
>1) The file sigraph.xsd fails validation with:
>
>file://sigraph.xsd:3,265: Attribute '{http://www.w3.org/2000/xmlns/}sig'
>is not declared for element 'xsd:schema'
>file://sigraph.xsd:3,265: Attribute '{http://www.w3.org/2000/xmlns/}xlink'
>is not declared for element 'xsd:schema'
This is a known limitation of the 'validate XMLSchema' functionality; we
are using the DTD representation of the XMLSchema spec, and DTD validation
will flag as an error every attribute or element non specified in the DTD
itself, even if they are in their own namespace.
>2) sample.xml does not validate at all
>
>it seems the XML Schema is not found or used. The errors start with
>file://sample.xml:4,14: Unknown element 'SIGRAPH'
>file://sample.xml:4,14: Root element different from DOCTYPE
The XMLSchema is not found because you are using an old URI for the
XMLSchema-instance namespace: the one you use comes from the October
working draft while you should use the URI specified in the recommendation
("http://www.w3.org/2001/XMLSchema-instance")
When you change this, you will see that validation occurs, even if the
XMLSchema you are using does contain XMLSchema features that Xerces 1.5.1
still doesn't support (like anyURI, dateTime, double, etc...)
Alberto
|
|
|
|