sshyran / genxdm

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

Do not throw exception during schema parsing when xs:import cannot be resolved to URI #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, the XmlSchemaParser.parseExternalModule method throws an exception 
if the namespace and schemaLocation cannot be resolved to a URI.  It should 
not.  Instead, resolution should be postponed to the point at which the 
imported components are needed.  This way, if the components are already 
available in the
ComponentProvider, they can be retrieved successfully w/o a need for an 
exception.  

(Note: for xs:includes, we'll still need to throw an exception, i.e. keep the 
current behavior for xs:includes.)

Original issue reported on code.google.com by joe.bays...@gmail.com on 28 Aug 2012 at 4:30

GoogleCodeExporter commented 8 years ago
(Revision: 386)  Modifed XMLSchemaParser.parseExternalModule to NOT  throw an 
excpetion if the SchemaCatalog returns null from a call to its  
resolveNamespaceAndSchemaLocation method.  We'll postpone raising an error 
until we actually encounter an unresolved component.

Original comment by joe.bays...@gmail.com on 12 Sep 2012 at 7:24

GoogleCodeExporter commented 8 years ago
Previous fix was incomplete.  Re-opening.

Original comment by joe.bays...@gmail.com on 26 Sep 2012 at 3:07

GoogleCodeExporter commented 8 years ago
(Revision: 396) Modified XMLParserImpl & XMLSchemaConverter to accurately 
reflect resolution of components from external ComponentProvider.

Original comment by joe.bays...@gmail.com on 26 Sep 2012 at 3:13

GoogleCodeExporter commented 8 years ago

Original comment by joe.bays...@gmail.com on 26 Sep 2012 at 4:04

GoogleCodeExporter commented 8 years ago

Original comment by joe.bays...@gmail.com on 24 Oct 2012 at 4:24