Re: [xsl] In XSLT 3.0, should the "document" function be available in xsl:evaluate?

Subject: Re: [xsl] In XSLT 3.0, should the "document" function be available in xsl:evaluate?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Jan 2017 19:04:03 -0000
Looks pretty clear it's a bug.

I also spotted recently that Saxon's xsl:evaluate allows you to call
stylesheet functions that are (explicitly or implicitly) private.

We'll only catch these things if people notice them and report them.

Michael Kay
Saxonica

> On 16 Jan 2017, at 15:04, Martin Honnen martin.honnen@xxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On 16.01.2017 15:55, Dimitre Novatchev dnovatchev@xxxxxxxxx wrote:
>> Have you also tried the XPath function doc() ?
>
> Yes, using 'doc' instead of 'document' all three implementations return the
same result, namely two times the stylesheet code. But I am not so much
looking for a solution to get some code working but I am rather trying to
understand why Saxon or XMLSpy make 'document' available in xsl:evaluate,
given that the spec seems to exclude XSLT only functions.

Current Thread