-
1. Re: JBossEntityResolver updates needed
starksm64 Jul 25, 2005 1:17 PM (in response to starksm64)As of the current head/4.0 (for 4.0.3) jbossxb schema resolution behavior, there is a DefaultSchemaResolver implementation of org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver that uses a JBossEntityResolver instance. The resolution logic of the SchemaBinding resolve(String nsUri, String localName, String baseURI, String schemaLocation) call is:
Using the nsUri as the systemID in the JBossEntityResolver.resolve(publicID, systemID) call. Looking at how we currently have some j2ee1.4 schemas registered, it looks like the first call should be to use the nsUri as the publicID
Use the schemaLocation as the systemID in the JBossEntityResolver.resolve(publicID, systemID) call.
If the schema is still not found, and the baseURI is not null, the xsd is located using a URL created from: URL(baseURI, schemaLocation).
Otherwise, if the baseURI is null, the xsd is located using a URL created from the schemaLocation.