[Bug 29983] [XSLT30] Scanning expressions and function calls

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29983

--- Comment #8 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
(In reply to Michael Kay from comment #7)
> Also noted that comment #5 is incorrect to suggest that 
> 
> catalog//author[name = 'Tolkien']
> 
> is not a scanning expression.

More precisely:

The first part, catalog//author, is a path expression with crawling posture and
consuming sweep. This part may be considered a scanning expression, but it
fails the following tests:

The inner expression of the predicate is itself consuming (and grounded).

Any expression with a consuming predicate is roaming and free-ranging.

Perhaps you meant an expression like catalog//author[@name = "Tolkien"], which
I think is indeed still not a scanning expression. My example in comment#4
deliberately used name, not @name.

A better example is perhaps

a//b//c[@d = "x"]

which is a scanning expression and is crawling. And the counterpart, for
instance:

a//b//c[d = "x"]

which is a scanning expression + non-motionless predicate, thus fails the test
for scanning expressions as a whole.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 17 November 2016 19:02:54 UTC