Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21375

xmlpatternsvalidator does not allow for non-numeric literals in xsd:double attributes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.6.3, 4.7.4
    • XML: QtXmlPatterns
    • Debian GNU/Linux 6.0 2.6.32-5-686, gcc version 4.4.5 (Debian 4.4.5-8), Qt SDK 4.6.3 (perhaps affects other versions as well)
    • 22d475e1ef32875c4933b2bb4c2830cb1bdd3266

    Description

      Attached is an xsd scheme file which seems to be fairly valid, as for Schema 1.0, but is not allowed by xmlpatternsvalidator or QXmlSchema::QXmlSchema, which both say "Error XSDError in file:test.xsd, at line 11, column 70: Value constraint of attribute intInf is not of attributes type: Double content is not listed in the enumeration facet.." If you change 'INF' into '-INF' or 'NAN', the same takes place. If changed to a finite literal (e.g. 28.5), or 'double' changed into 'string', xmlpatternsvalidator (and QXmlSchema constructor) find no errors.

      Attachments

        1. test.xsd
          0.6 kB
          bipll
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jukukkon Juha Kukkonen
            bipll bipll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes