Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1752

pattern match failure in restriction of decimal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0
    • None
    • debian etch
      libxerces27 2.7.0-3
      libxml-xerces-perl 2.7.0-0-2

    Description

      I have a simple type based on a restriction of decimal with a pattern. The pattern is "(\d+)|(\d+\.\d+)" which should match 700.00, but fails with this error:

      Value '700.00' does not match regular expression facet '(\d+)|(\d+\.\d+)'

      If I reverse change the order of the branches so it reads '(\d+\.\d+)|(\d+)', the pattern match succeeds.

      Attachments

        1. vgis-test
          1 kB
          Martin Waite
        2. vgis2
          0.1 kB
          Martin Waite
        3. schema2
          0.9 kB
          Martin Waite

        Activity

          People

            Unassigned Unassigned
            mwaite Martin Waite
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: