W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2008

Re: fn:collection() URI resolution and base URI in XSLT

From: Norman Walsh <ndw@nwalsh.com>
Date: Sun, 02 Nov 2008 17:26:47 -0500
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2skq969y0.fsf@nwalsh.com>
"Florent Georges" <fgeorges@fgeorges.org> writes:
>   I can't find in the current WD how the base-URI property (of the
> static context) is initialized for an XSLT stylesheet that is
> lexically within an XProc definition.

I think the answer is that it's the base URI of the p:input element
for the stylesheet port. From 2.6.2.2:

  Base URI
    The base URI of the element on which the expression occurs.

Though I'm not sure that's as clear as it could be.

>   I would like to use fn:collection() in an XSLT stylesheet.  And I
> would like that the URI passed as argument is interpreted relatively
> to the XProc definition document.  So to be sure of the value to pass
> to fn:collection(), I should know how the base-URI is initialized.

FYI: I totally broke Saxon's fn:collection() support in 0.8.4. It'll be
fixed in 0.8.5.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | One of the great misfortunes of mankind
http://nwalsh.com/            | is that even his good qualities are
                              | sometimes useless to him, and that the
                              | art of employing and well directing
                              | them is often the latest fruit of his
                              | experience.-- Chamfort

Received on Sunday, 2 November 2008 22:27:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 2 November 2008 22:27:29 GMT