[oXygen-user] validation failure with version 6.1

George Cristian Bina
Wed Aug 17 02:17:05 CDT 2005

Hi Gary,

The problem in the first case appears because you use different schema 
locations for the xml namespace, thus two schemas are parsed and you get 
the duplicate definitions. You should decide if you want to use xml.xsd 
or http://www.w3.org/2001/03/xml.xsd and use the same in all the schemas 
that import the xml namespace. Changing for instance in the 
simpledc20021212.xsd schema the import for the xml namespace as below
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
will solve the duplicate definitions problem.

Also note that the http://www.w3.org/2001/03/xml.xsd stores the latest 
schema for the xml namespace and that may vary in time, see the comments 
in the http://www.w3.org/2001/03/xml.xsd schema for more details about this.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Gary Gapinski wrote:
> George Cristian Bina wrote:
>> Dear Gary Gapinski,
>> Thank you for contacting us.
>> oXygen uses Xerces for XML Schema validation. In the past Xerces used 
>> a one schema per namespace rule and with version 2.7.0 Xerces added 
>> support also for allowing multiple schemas for a namespace and oXygen 
>> added that as an option. By default that option was enabled in oXygen 
>> 6.1 and you have xml.xsd schema imported from more than one location 
>> thus the duplicate definitions of the attributes. Please go to 
>> Options->Preferences dialog on the XML / XML Parser Options page and 
>> disable the http://apache.org/xml/features/honour-all=schemaLocations 
>> option in the XML Parser Features group. That will switch to one 
>> schema per namespace and your documents will be valid.
> Thanks, George. This corrects the problem. (Now, I'll have to look 
> closely to learn just how this occurs.)
> Regards,
> Gary

More information about the oXygen-user mailing list