Project

Profile

Help

Bug #2715

closed

XPath parsing edge cases

Added by Michael Kay over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
2016-04-19
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

See https://lists.w3.org/Archives/Public/public-xsl-query/2016Mar/0037.html

The WG believes that the XPath grammar allows expressions such as

12!(12 div.)

 12 div-3

 3!(12 div-.)

which Saxon cannot parse. The key point is that Saxon is reading the "." or "-" as a continuation of the token starting "div", which it should not do, because the tokenization rule is to accept the longest token consistent with the grammar, and in these contexts, an NCName containing a "." or "-" is not consistent with the grammar.

Please register to edit this issue

Also available in: Atom PDF