Hi Liam,
Thanks for the enclosed example. I am still trying to figure out how to run it, so I tried to simplify everything.
As you can easily guess, my knowledge on XML catalogs is rather limited: For example, when trying to run the example with fetch:xml, I noticed that the URI resolution works if I change "nonsense.dtd" to "http://nonsense.dtd" (both in all.xml and in saxalog.xml). I wonder why it works without the URI scheme on your system? I have attached my simple example for fetch.xq.
Maybe we manage to construct a fully-stripped down, minimized instance of the example that works with XSLT 1.0?
Now, in fact, if you changed the catalog option to a boolean, and documented that the db:option should be used, i think you’d be fine.
The more I think about URI resolution, the more I see why it could make sense to handle catalog resolution globally. In the given case, I’ll still need to understand why it makes a difference if we assign the value of the CATFILE option or the xslt:transform option to the transformer?
Cheers, Christian
On Fri, Mar 8, 2019 at 8:26 PM Liam R. E. Quin liam@fromoldbooks.org wrote:
On Thu, 2019-03-07 at 13:19 +0100, Christian Grün wrote:
Hi Liam,
works if i uncomment the option declaration, but not otherwise.
Interesting; seems I have overlooked something. And I must admit I haven’t tried to run it by myself so far. Could you possibly send me a little self-contained example (xsl, catalog file, file referenced by the xsl file) that demonstrates the missing URI resultion and that I could embed as unit test?
Yes, enclosed, with a README that says what output is expected, and the two problems - [A] the wrong catalog file being used. [B] a spurious message
Now, in fact, if you changed the catalog option to a boolean, and documented that the db:option should be used, i think you’d be fine.
Liam
i'd suggest either checking if the systemProperty for it is set, … The system property is xml.catalog.ignoreMissing
Yes, sounds reasonable. It’s actually what I already tried before I decided to drop the static property assignment.
Thanks, Christian