validation failure with version 6.1

Version 6.1 (build 2005071905) of <oXygen/> appears to have broken validation. The attachment contains some files from NIST, one of which - ios-sample-1.0.xccdf.xml - has been slightly modified from the original (original files are available from http://csrc.nist.gov/checklists/xccdf.html). This file validates successfully in <oXygen/> v6.0, but not with <oXygen/> v6.1. v6.1 posts the following errors, which appear to be spurious: SystemID: null Location: 88:47 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,lang'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct SystemID: null Location: 95:48 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,space'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct SystemID: null Location: 104:45 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,base'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct SystemID: null Location: 111:41 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,specialAttrs'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct

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. Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Gary Gapinski wrote:
Version 6.1 (build 2005071905) of <oXygen/> appears to have broken validation. The attachment contains some files from NIST, one of which - ios-sample-1.0.xccdf.xml - has been slightly modified from the original (original files are available from http://csrc.nist.gov/checklists/xccdf.html).
This file validates successfully in <oXygen/> v6.0, but not with <oXygen/> v6.1. v6.1 posts the following errors, which appear to be spurious:
SystemID: null Location: 88:47 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,lang'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct
SystemID: null Location: 95:48 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,space'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct
SystemID: null Location: 104:45 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,base'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct
SystemID: null Location: 111:41 Description: E sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.w3.org/XML/1998/namespace,specialAttrs'. URL: http://www.w3.org/TR/xmlschema-1/#sch-props-correct
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

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

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" schemaLocation="xml.xsd"> 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 --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com 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
participants (2)
-
Gary Gapinski
-
George Cristian Bina