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

Re: Arrow operator and empty sequences

From: Christian Grün <christian.gruen@gmail.com>
Date: Thu, 17 Dec 2015 17:50:49 +0100
Message-ID: <CAP94bnM986dkQVgMP=GDQtnoPnGYg1HUAKUgftDTQSvAWXSbZg@mail.gmail.com>
To: Abel Braaksma <abel.braaksma@xs4all.nl>
Cc: Public Joint XSLT XQuery XPath <public-xsl-query@w3.org>
> This is probably intended, but if not, I wonder if an optimizing processor may evaluate the right-hand side of this operator and stop evaluation if it concludes it is the empty sequence.

I don’t think so, because there are many functions which provide
meaningful results other than empty sequences, even if the input is
empty (such as e.g. /one/two/three => count() ).

Christian
Received on Thursday, 17 December 2015 16:51:41 UTC

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