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

XSD schema load failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • None
    • Windows 7 / xerces from xerces-c-3.1.1-x86-windows-vc-8.0.zip

    Description

      The following schema causes parser exception "mismatched type in MergeRanges":

      <?xml version="1.0" encoding="UTF-8"?>
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
      <xs:simpleType name="MediaDesc">
      <xs:restriction base="xs:string">
      <xs:pattern value="(\s*[^,])*"/>
      </xs:restriction>
      </xs:simpleType>
      </xs:schema>

      Note that if I remove \s* from pattern, schema loaded without errors.

      Attachments

        Activity

          People

            Unassigned Unassigned
            data_transformation Tzvika Adamovsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: