incorrect normalization of double lex value "-0.1"

Description

XMLDatatypeUtil.normalize creates an illegal normalized lexical value when trying to normalize a negative fraction, e.g. "-0.1". The incorrect normalized value for this is "..1E-1", that is it introduces two decimal points.

As several Rio writers (including TriG and Turtle) make use of datatype normalization by default, this can lead to syntactically incorrect Turtle/TriG files being produced.

Environment

None

Assignee

Jeen Broekstra

Reporter

Jeen Broekstra

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure