RE: [xsl] Re: xpath2 functions returning ()

Subject: RE: [xsl] Re: xpath2 functions returning ()
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 4 Jan 2002 18:04:47 -0000
> So:
>
>   (1, 2, 3)[2]
>
> is an error according to the XPath 2.0 WD, as far as I can tell.
>
> Which strikes me as rather peculiar, personally.
>
I think it's a bug.

You're right, the spec does say "The expression in the general step must
evaluate to a sequence of nodes". I'm fairly sure that what we MEANT to say
was that a general step used as an operand of "/" in a path expression must
evaluate to a sequence of nodes.

I'll ensure this is flagged as an issue.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread