Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Michael Glavassevich
Chris Simmons wrote on 10/17/2011 12:22:09 PM: > I'd be interested in hearing from anyone involved in the original > spec for catalogs as to whether rewriteURI was intended for > namespace URI's or not. I suspect it wasn't considered at the time > and hence there's no consensus. Norm Walsh wa

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Eliot Kimber
Mapping namespace URIs to schemas via resolveURI is perfectly acceptable, especially if there is no schemaLocation value (or "respect schema locations" has been turned off). The schema design has always left it flexible how a processor maps documents to schemas and mapping namespaces to schema doc

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Chris Simmons
On 14/10/11 20:20, Mark R Maxey wrote: Xerces Java Users, Xerces is failing to correctly resolve XSDs to their locations using XML catalogs that prefer public IDs during the loading of the XSDs for schema validation. After extensive debugging, we've found that the following method out of _XM

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Mark Maxey
One final comment on our use case: When doing XSD validation, you have to be able to tell the validator which XSD to use. We have 130+ namespaces and 300-400 XSDs. For every type of XML instance document, we had to have a piece of configuration that told us which XSD that document maps to. Tha

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Chad La Joie
t; Modifying the XSDs is less painful if it is only done at build >>> time and then deployed. I'm going to need to think about whether we >>> want to continue this practice and/or use the XML catalogs with system IDs >>> ... >>> > >>> > >>

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Chad La Joie
. I'm going to need to think about whether we >> want to continue this practice and/or use the XML catalogs with system IDs >> ... >> > >> > >> > >> > Mark >> > >> > >> > Chad La Joie ---10/17/2011 07:30:51 AM---We'

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Michael Glavassevich
10/17/2011 07:30:51 AM---We've run in to this > before as well. Is there any reason you can't just change the schemalocations > > > > > > From: > > Chad La Joie > > To: > > j-users@xerces.apache.org > > Date: > > 10/17/2011 07:30 AM > >

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Chad La Joie
> Chad La Joie ---10/17/2011 07:30:51 AM---We've run in to this before as well. > Is there any reason you can't just change the schema locations > > > From: > Chad La Joie > To: > j-users@xerces.apache.org > Date: > 10/17/2011 07:30 AM > Subject: > Re:

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Mark R Maxey
1 07:30 AM Subject: Re: JAXP XML Catalog Resolver for

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Chad La Joie
We've run in to this before as well. Is there any reason you can't just change the schema locations to point to local files? That was the only truly reliable method we could find that worked across all our XML processing stacks. On Mon, Oct 17, 2011 at 08:16, Mark R Maxey wrote: > > Thank you a

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-17 Thread Mark R Maxey
52 PM Subject: Re: JAXP XML Catalog Resolver for Publi

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-15 Thread Michael Glavassevich
Mark, Mark R Maxey wrote on 10/14/2011 06:03:08 PM: > Thank you for your quick response. > > I'll confess we've struggled mightily with XSD resolution. We turned > to XML catalogs hoping the namespace to URI mapping would allow us > to work around invalid schemaLocations. Our (bad?) idea was to

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-14 Thread Mark R Maxey
Date: 10/14/2011 02:51 PM Subject:Re: JAXP XML Catalog Resolver for Public IDs Mark, This is not a bug. A public

Re: JAXP XML Catalog Resolver for Public IDs

2011-10-14 Thread Michael Glavassevich
Mark, This is not a bug. A public ID is not a target namespace or vice versa. Xerces passes the parameters in their correct positions [1] to the LSResourceResolver. If you want to process a namespace URI as if it were a public ID you can extend the XMLCatalogResolver and override resolveResource(