Project

Profile

Help

Bug #1928

closed

Singleton value not recognized as numeric subscript

Added by Michael Kay over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2013-11-02
Due date:
% Done:

100%

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

Description

In particular circumstances, a single item selected by taking a subsequence of a sequence might not be recognized as a numeric value for the purpose of subscripting.

For example, if $i is tail((1,2)) then the expression $x[$i] may use the effective boolean value of $i rather than its numeric value.

The problem arises because the constructor

public SequenceExtent(SequenceExtent ext, int start, int length)

may return a SequenceExtent of length 1 rather than reducing it to a NumericValue.

Actions #1

Updated by Michael Kay over 10 years ago

  • Status changed from New to Resolved

Patch committed to the 9.5 and 9.6 branches. Test case added to QT3.

Actions #2

Updated by O'Neil Delpratt over 10 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.5.1.4

Bug fix applied in Saxon maintenance release 9.5.1.4

Please register to edit this issue

Also available in: Atom PDF