Actions
Bug #6473
closedExpression `/[x]` is not accepted
Start date:
2024-07-07
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java
Description
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.
Related issues
Please register to edit this issue
Actions