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

Error occurs if root type definition or root element declaration uses namespace names that are not interned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • None

    Description

      http://apache.org/xml/properties/validation/schema/root-element-declaration
      http://apache.org/xml/properties/validation/schema/root-type-definition

      These properties accept QNames. The namespace part of the QName is sometimes compared with other namespace values using ==, because most namespace values in Xerces are interned. This comparison fails when the QName's namespace is not interned. This will in turn cause other errors, e.g.

      [Error] test.xsd:4:31: TargetNamespace.1: Expecting namespace 'test', but the target namespace of the schema document is 'test'.

      Attachments

        Activity

          People

            sandygao@ca.ibm.com Sandy Gao
            sandygao@ca.ibm.com Sandy Gao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: