Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344015 - Insertion order lost if xsd includes another xsd
Summary: Insertion order lost if xsd includes another xsd
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ling Hao CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 14:33 EDT by Ling Hao CLA
Modified: 2021-11-19 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.