We're updating the issue view to help you get more done. 

Incorrect validation of xsd:time

Description

In XMLDatatypeUtil class there is isValidTime() method which determines whether value is valid xsd:time.
This regexp is incorrect as it does not permit milliseconds :

String regex = "\\d\\d:\\d\\d:\\d\\d(Z|(\\+|-)\\d\\d:\\d
d)?";

which should be valid according to some sources :
http://books.xmlschemata.org/relaxng/ch19-77311.html
http://www.schemacentral.com/sc/xsd/t-xsd_time.html

so this will fail : "13:20:30.5555"^^xsd:time

Environment

None

Status

Assignee

JeenB

Reporter

Marek Šurek

Labels

None

Components

Fix versions

Priority

Major