Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344015

Summary: Insertion order lost if xsd includes another xsd
Product: z_Archived Reporter: Ling Hao <ling.hao>
Component: SapphireAssignee: Ling Hao <ling.hao>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ling Hao CLA 2011-04-27 14:33:11 EDT
If a xsd includes another xsd, the insertion order is lost. 

I've created an example schema where this fails in org.eclipse.sapphire.test plugin, schemas/xml/xsd/0001a.xsd. I've added an include directive and a new element named element2.  Basically the root cause is that the included files overwrite the schema location and the namespace. I've also added a new test called "testChildSchemaParsing"
Comment 1 Ling Hao CLA 2011-04-27 14:35:23 EDT
Fix has been checked in on 4/20. This bug provides the example schema and provides a unit test.
Comment 2 Konstantin Komissarchik CLA 2011-04-27 17:30:09 EDT
Please update headers of changed files. That applies to plugin.xml and xsd files.
Comment 3 Ling Hao CLA 2011-04-27 19:06:50 EDT
I don't see any header information in the xsd files.
Comment 4 Konstantin Komissarchik CLA 2011-04-27 19:26:43 EDT
Please add headers. You can copy ones from another xml file, such as plugin.xml.
Comment 5 Ling Hao CLA 2011-04-27 19:42:02 EDT
headers added.
Comment 6 Konstantin Komissarchik CLA 2011-04-27 21:59:54 EDT
Verified. Closing.