Fix XML schema validation failure.
authorJuha Kukkonen <juha.kukkonen@nokia.com>
Mon, 10 Oct 2011 05:36:14 +0000 (08:36 +0300)
committerJuha Kukkonen <juha.kukkonen@nokia.com>
Mon, 10 Oct 2011 07:15:23 +0000 (10:15 +0300)
commit22d475e1ef32875c4933b2bb4c2830cb1bdd3266
tree7959bcba424f1108481e26341c4e9e35e12e152d
parent7e662f3727e7c3dd3c41c29ed49bc41d2b66c744
Fix XML schema validation failure.

Checking constraining facets for double failed if enumeration
restriction had values INF or NaN.

There were two issues that caused validation to fail:
- wrong conversion function was used when constraining facets for
 double are checked, which caused values to be in lower case
- case when both restriction and default value are NaN was not
 handled correctly

Task-number: QTBUG-21375
Reviewed-by: Honglei Zhang
src/xmlpatterns/schema/qxsdtypechecker.cpp
tests/auto/xmlpatternsvalidator/files/schema-with-restrictions.xsd [new file with mode: 0644]
tests/auto/xmlpatternsvalidator/tst_xmlpatternsvalidator.cpp