W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2014

Re: Pre-loading files

From: David Cramer <david@thingbag.net>
Date: Mon, 16 Jun 2014 10:48:51 -0500
Message-ID: <539F11E3.7060906@thingbag.net>
To: xproc-dev@w3.org
On 6/12/14, 4:41 PM, David Cramer wrote:
> But still the xslt fails when it tries to load an xinclude with
> xpointer="element(someId)":
> WARNING: org.xml.sax.SAXParseException: Include operation failed,
> reverting to fallback. Resource error reading file as XML
> (href='chapters/glossary.xml'). Reason: XPointer resolution unsuccessful.

Further investigation confirmed that even if I used <p:load> to pre-load
the files, Saxon was not using these pre-loaded versions.

Rather than try to sort that out, I realized it would be easier just to
use <p:wrap-sequence> to wrap the docs I was already loading with
<p:load> and then modify my xslt to accept those instead of using doc()
to open them.

All works well now. Thanks for your help.

Received on Monday, 16 June 2014 15:49:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:12 UTC