Project

Profile

Help

Bug #1943

closed

Bug in substring() when $start < 1

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

Status:
Won't fix
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
2013-12-03
Due date:
% Done:

0%

Estimated time:
Platforms:

Description

While playing around with Saxon-CE, I found that fn:substring behaves

different from what it should be when the starting location is less

than 1:

fn:substring("ABC", 0, 2)

should return "A", but it is "AB" on Saxon-CE 1.1.

Reported by Gunther Rademacher today on saxon-help list

Please register to edit this issue

Also available in: Atom PDF