Project

Profile

Help

Bug #2278

closed

Pattern descendant::text()[1] gives a spurious warning, and no matches

Added by Michael Kay almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
Start date:
2015-01-04
Due date:
% Done:

100%

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

Description

When the pattern match="descendant::text()[1]" is used in a template rule, then

(a) there is a spurious warning that "the descendant axis starting at a text node will never select anything"

(b) the pattern never matches anything.

Both effects are caused by an incorrect type inference.

Added to W3C test suite as test case match-236.

Please register to edit this issue

Also available in: Atom PDF