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

Invalid schema is reported to be valid

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • None
    • Operating System: Windows XP
      Platform: PC
    • 22760

    Description

      When validating the attached XML+XSD using "saxcount -n -f -s car.xml", no
      errors are reported. But the schema is invalid (also according to Xerces-J,
      MSXML, etc..) because it specifies elementFormDefault="qualified" but the
      element "car" is declared as

      <xsd:element name="car" type="Car"/>

      (note that the type "Car" should be prefixed by the namespace prefix "so" that
      is bound to the targetNamespace of the schema)

      Alberto

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--car.xml
          0.2 kB
          Alberto Massari
        2. ASF.LICENSE.NOT.GRANTED--car.xsd
          0.9 kB
          Alberto Massari

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            alby@exceloncorp.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment