Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-14 Thread Imsieke, Gerrit, le-tex
On 14.03.2019 10:56, Christian Grün wrote: Maybe we could port Gerrit’s code to XQuery… Volunteers are welcome ;) You probably can’t instruct Saxon to use the XSLT-based resolver (or an XQuery-based resolver) when reading XML files using doc() or xsl:import. I think it needs Java classes

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-14 Thread Christian Grün
> i’m sorry - i should have included more background and rationale as to > why i did it the way i did, i think. No reason to be sorry, Liam; good to hear it’s working now. Thank you! > Actually i’ve thought about having > the ability to write a URI Resolver in XQuery, >

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-13 Thread Liam R. E. Quin
On Wed, 2019-03-13 at 20:15 +0100, Imsieke, Gerrit, le-tex wrote: > > On 13.03.2019 19:55, Liam R. E. Quin wrote: > > Yes, they are a bit of a nightmare. Actually i’ve thought about > > having > > the ability to write a URI Resolver in XQuery, > > db:resolve-identifier($system, $public,

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-13 Thread Imsieke, Gerrit, le-tex
On 13.03.2019 19:55, Liam R. E. Quin wrote: Yes, they are a bit of a nightmare. Actually i’ve thought about having the ability to write a URI Resolver in XQuery, db:resolve-identifier($system, $public, $purpose, $types) as xs:anyURI? but maybe it is too scary! I’ve already written a

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-13 Thread Liam R. E. Quin
On Wed, 2019-03-13 at 11:57 +0100, Christian Grün wrote: > > Note that i have a public identifier, so using prefer-public lets > > that > > be resolved. > > xmllint and BaseX seem to behave differently on my system. With > xmllint and xsltproc, your examples run fine. That's good at least... >

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-13 Thread Christian Grün
> Note that i have a public identifier, so using prefer-public lets that > be resolved. xmllint and BaseX seem to behave differently on my system. With xmllint and xsltproc, your examples run fine. When running the following query… fetch:xml('all.xml', map { 'dtd': true(), 'catfile':

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-12 Thread Liam R. E. Quin
On Tue, 2019-03-12 at 13:46 +0100, Christian Grün wrote: > 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

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-12 Thread Christian Grün
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

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-08 Thread Liam R. E. Quin
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

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-07 Thread Christian Grün
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)

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-06 Thread Liam R. E. Quin
On Tue, 2019-03-05 at 13:44 +0100, Christian Grün wrote: > Liam, > > Thanks a lot for your patch, very appreciated! Pull requests are even > handier for us, but any type of commit is welcome. Thanks! Awesome! I'll do a pull request next time. I've tried the snapshot and got it to work;

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-05 Thread Christian Grün
Liam, Thanks a lot for your patch, very appreciated! Pull requests are even handier for us, but any type of commit is welcome. I have merged your code, and I have done some further modifications (see the GitHub commit history for the changes in the code): • I have decided to add a 'catalog'

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-02-27 Thread Michael Seiferle
Dear Liam, Thanks a lot for this Patch, this issue has been open for quite some time ;-) As Christian is currently on holidays and will only return next week, I added a Pull Request on GitHub https://github.com/BaseXdb/basex/pull/1667 so the patch