Project

Profile

Help

Bug #1943

Bug in substring() when $start < 1

Added by Michael Kay almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
2013-12-03
Due date:
% Done:

0%

Found in version:
1.1
Fixed in version:

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

Also available in: Atom PDF