Are we actually using the spring.schemas files?

Cantor, Scott cantor.2 at osu.edu
Sun Feb 2 13:57:53 EST 2014


On 2/2/14, 1:52 PM, "Cantor, Scott" <cantor.2 at osu.edu> wrote:
>
>I'm pretty sure something upstream of that code is filtering out attempts
>to do the mapping lookup if the URI doesn't end in ".xsd". I tried using
>foo.xml and foo.foo and that also fails.

That was easy, it's the DelegatingEntityResolver class. They literally
check the file extension and filter resolution attempts so that "*.xsd"
goes to a schema resolving class and "*.dtd" to a DTD resolving class.

So nothing that doesn't end in *.xsd will ever work on the LHS of
spring.schemas. By definition of course that means nothing we currently
are putting in them would ever matter.

-- Scott




More information about the dev mailing list