W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2016

[Bug 30033] [xslt30] Streamability rules for fn:current() lack an "otherwise" clause

From: <bugzilla@jessica.w3.org>
Date: Thu, 15 Dec 2016 14:43:06 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-30033-523-FqK4UOvcH1@http.www.w3.org/Bugs/Public/>

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
Note also that rule (1) talks of the outermost containing XPath expression,
which doesn't really allow for use of current() within a pattern.

Test case stream-200 (in test set source-document) uses the following within a
streamable accumulator:

match="part-name/text()[$selected-parts = current()]"

To establish that this is streamable, we need to establish that the static type
of current() is a text node. There is nothing in the static typing rules to
achieve this. We can make it guaranteed-streamable by writing it as

match="part-name/text()[$selected-parts = current() treat as text()]"

but this seems a little unfortunate.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 15 December 2016 14:43:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:03 UTC