sshyran / genxdm

Automatically exported from code.google.com/p/genxdm
0 stars 0 forks source link

Cyclic includes cause duplicate component definitions #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If schema A and B include each other, and neither schema has a targetNamespace, 
we'll report duplicate component errors.

Original issue reported on code.google.com by joe.bays...@gmail.com on 9 Dec 2014 at 8:40

GoogleCodeExporter commented 8 years ago
Fixed at r523 in XMLSchemaParser.parse.  Prevented duplicate parsing of 
chameleon schema by adding the starting point schema to the list of seen 
chameleons if it has no targetNamespace.  That way, if that schema is included 
into the no-namespace namespace later, it won't be re-parsed and won't create 
duplicate component definitions.

Original comment by joe.bays...@gmail.com on 9 Dec 2014 at 8:46