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

In XSD pattern facet regex, hyphen requires escape where it should not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.4
    • None
    • Miscellaneous
    • None

    Description

      v3.2.4 requires escaping of hyphens in XSD pattern facet character classes where no escape should be needed.

      For example, technically, none of the hyphens in this need to be escaped "[A-Z;%.-]". The first hyphen defines a character range, the second represents a hyphen character as a literal member of the character class. Xerces C (3.2.4) requires this latter hyphen to be escaped.

      I listed this as minor priority because this causes a clear failure and the workaround is simple (put in the backslash escape), and that workaround is compatible with other XSD validators. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: