W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2013

Re: Using document() with a document containing xi:includes

From: Norman Walsh <ndw@nwalsh.com>
Date: Mon, 26 Aug 2013 07:14:31 -0700
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2ioysy1x4.fsf@nwalsh.com>
David Cramer <david@thingbag.net> writes:
> I have an xslt that uses document() to open an xml document containing
> xi:includes. When I run the xslt directly with Saxon 9.x (including the
> -xi:on switch), it resolves all the xi:includes are resolved as
> expected. However when I invoke this xslt from within an Xproc pipeline
> processed by Calabash, the xincludes are not resolved. Is there a way to
> cause the document() function to resolve xincludes when invoked from
> p:xslt in Calabash? I've tested this with Calabash 1.0.13-94.

XML Calabash attempts to cache the documents it sees. I believe if you
know the URI that the document() function is going to access and you
run that document through an XInclude step before running XSLT, then
Saxon will see the XIncluded version.

This is an area of "implementation dependent" behavior in the spec.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Monday, 26 August 2013 16:20:56 UTC

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