Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1265

E2-67 not fully implemented; rejecting regular expressions like [-], [^-]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • 2.9.1
    • None

    Description

      Current behaviour:

      [b-a], Expected: Invalid, Actual: Invalid, Reason: backwards
      [--+], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e range
      [+--], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e range
      [-+], Expected: Valid, Actual: Valid, Reason: '-' is at the beginning of a positive character range (PCR)
      [+-], Expected: Valid, Actual: Valid, Reason: '-' is at the end of a (PCR)
      [^-+], Expected: Valid, Actual: Valid, Reason: '-' is at the beginning of a (PCR)
      [^+-], Expected: Valid, Actual: Valid, Reason: '-' is at the end of a (PCR)
      [-], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning/end of a (PCR)
      [^-], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning/end of a (PCR)
      [--], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning and end of a (PCR)
      [^--], Expected: Valid, Actual: Invalid, Reason: '-' is at the beginning and end of a (PCR)
      [---], Expected: Invalid, Actual: Invalid, Reason: '-' can't be used in a s-e range

      The current version of Xerces in SVN gives the wrong answer for 4 cases.

      This was originally reported as a bug against Eclipse XSD. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=197103 for more details.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mrglavas@ca.ibm.com Michael Glavassevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: