Bug #6516
closedExpression `/[x]` is not accepted
100%
Description
This bug #6473 reported against Saxon (2024-07-07), is also a bug in SaxonJS:
The expression
/[x,y]
is apparently legal in XPath 3.1 -- it should be interpreted as the path/
(selecting the root node) followed by an array constructor evaluated with that root node as the context item. (One might imagine an alternative interpretation in which[x,y]
is interpreted as a predicate filter, but that doesn't parse.)Saxon rejects this expression with a syntax error.
The expression
/map{a:2}
also appears to be legal, and is also rejected by Saxon.
The new QT3 tests in prod-PathExpr
added for this bug (PathExpr-17 PathExpr-18 PathExpr-19) fail with SaxonJS.
Related issues
Please register to edit this issue
Also available in: Atom PDF Tracking page