Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Converting a whitespace string to a number crashes - ID: 851636
Last Update: Settings changed ( mhkay )

A conversion such as number(" ") fails with a
StringIndexOutOfBoundsException. It should return NaN.
The failure occurs when converting any non-empty string
consisting entirely of whitespace to a type that's
defined with whiteSpace="normalize" in the XML schema
definition of the type (which is true of most types).

Source code fixed, test case added (math-two18).


Michael Kay ( mhkay ) - 2003-11-30 18:02

5

Closed

Fixed

Michael Kay

XPath conformance

v7.8

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2004-03-09 09:48 mhkay
resolution_id None 2004-03-09 09:48 mhkay
close_date - 2004-03-09 09:48 mhkay