On Wed, Jun 17, 2009 at 12:04 PM, Ramkumar R<[email protected]> wrote: > On Tue, Jun 16, 2009 at 4:10 PM, Simon Laws <[email protected]> > wrote: >> >> Works for me too. Thanks Ram >> >> What piece of code does resolve schema by namespace? >> >> Simon > > Hi Simon, > > In case of XSD, the @schemaLocation is handled by > org.apache.ws.commons.schema.XmlSchemaCollection > for any path specified in the schemaLocation attribute. I believe, we should > be able to impose the namespace resolution > mechanism for XmlSchemaCollection by creating a custom implementing for > org.apache.ws.commons.schema.resolver.URIResolver. > > Currently, XSDModelResolver provides a custom implementation for > org.apache.ws.commons.schema.resolver.URIResolver > to resolve the path relative to the contribution. We might have to modify > the code for URIResolver to handle the > namespace resolution. > > Let me try doing that, and see how it goes. > > -- > Thanks & Regards, > Ramkumar Ramalingam >
So are you saying that we are currently not able to resolve XSDs by namespace alone? Simon
