migrating xml schema definitions from v2 to v3 ?

Brent Putman putmanb at georgetown.edu
Thu Feb 28 17:29:56 EST 2013


On 2/28/13 3:27 PM, Cantor, Scott wrote:



> The other issue is preventing remote lookup of schemas. We should be able
> to do that for our own code, but IIRC Spring was buggy and broke when we
> attempted to do that universally. 


I remember that incident.  I wondered at the time whether that was due
to our misuse of spring.schemas and corresponding overriding of the
entity resolver (?) that makes what we did actually work.  IIUC with a
default Spring beans setup and their standard stuff, it should not fetch
remotely since the schemas are stored in their jars and (properly)
referenced using a spring.schemas file.  I speculate that since we
mucked with the resolution process, their schemas were no longer locally
resolvable, so it fell back to trying to fetch remotely.


> It's basically that I want to make sure we don't have any reliance on
> xsi:schemaLocation anywhere in the code and that it actually is ignored.

I think it's fine to try in general, but Spring specifically might be
problematic.  Maybe there's a way to introduce a different XML catalog
type of thing, rather than their own catalog-ish type of approach (i.e.
the spring.schemas stuff).  But I've never seen any docs on this,
everything always seems to assume use of schemaLocation.  So I think
we'll probably be on our own in trying to figure out how to do this for
Spring's stuff.



More information about the dev mailing list