W3C home > Mailing lists > Public > public-xsl-query@w3.org > December 2015

RE: Arrow operator and empty sequences

From: Abel Braaksma <abel.braaksma@xs4all.nl>
Date: Thu, 17 Dec 2015 19:14:11 +0100
To: "'Florent Georges'" <fgeorges@fgeorges.org>, 'Christian GrĂ¼n' <christian.gruen@gmail.com>
Cc: "'Public Joint XSLT XQuery XPath'" <public-xsl-query@w3.org>
Message-ID: <1f2a01d138f6$bb7bfb70$3273f250$@xs4all.nl>
> I agree with Christian.  I think a key difference with path expressions is that
> the RHS operand is not called once per item in the result of evaluating the
> LHS operand (which indeed, is zero times for the empty sequence).
> With the arrow operator, the RHS is called exactly once, whatever the result
> of evaluating the LHS.

Yes, I think that makes sense, albeit a trifle unintuitive. So the LHS cannot work as a filter (but we have "/" and "!" for that, which *does* work that way, i.e., if LHS is empty, RHS needs no eval)
Received on Thursday, 17 December 2015 18:14:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:43:15 UTC