sshyran / genxdm

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

Request to not require SchemaCatalog and SchemaCatalogResolver when imported/included schema components already exist in ComponentProvider #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
GenXDM schema parser requires SchemaCatalog and SchemaCatalogResolver to assist 
w/resolving URIs of imported or included schemas.  However, if the provided 
ComponentResolver already contains the components in those imported (NOT 
included) schemas, is it possible to waive the requirement of the SchemaCatalog 
and SchemaCatalogResolver?

Original issue reported on code.google.com by joe.bays...@gmail.com on 14 Sep 2012 at 2:17

GoogleCodeExporter commented 8 years ago
We should probably simply make the default catalog and resolver be the default.

Original comment by aale...@gmail.com on 14 Sep 2012 at 3:10

GoogleCodeExporter commented 8 years ago
(rev 387) In constructor of W3cXmlSchemaParser, set catalog to Used 
DefaultSchemaCatalog and resolver to DefaultCatalogResolver.SINGLETON.  This 
way, if the user does not provide a catalog and resolver, when an 
xs:import/xs:include is encountered during schema parsing, even if the URI 
cannot be resolved, we will not raise an error until later, when a referenced 
component fails to resolve.

Original comment by joe.bays...@gmail.com on 14 Sep 2012 at 3:38