Re: key function - document node

Ihe Onwuka <[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <CALfs7+xqv26ymod5QPOcXgB9NWfTgF+k4WxwtPWMPyke7w_Xyw@mail.gmail.com>
Well I only got a correct result by wrapping an xsl:document around
element in the variable ......shrugs.


On Thu, Sep 3, 2020 at 2:57 PM Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> wrote:

> No, it should produce the correct result ;-)
>
> The third parameter scopes the result; nodes will only be selected by the
> key() function if they are withing the subtree rooted at the node given in
> the third argument.
>
> Michael Kay
> Saxonica
>
> On 3 Sep 2020, at 19:18, Ihe Onwuka <[email protected]> wrote:
>
> I amended an invocation to the key function wherein the 3rd parameter was
> not a document node but was a variable with an element type declaration. I
> got no error or warning but the stylesheet executed to completion and
> provided the wrong result.
>
> Is this what should happen?
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.