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

Bogus diagnostics when an unknown name is referenced from imported namespace

    XMLWordPrintableJSON

Details

    Description

      Run DOMCount on the attached test case like this:

      DOMCount -v=always -n -s -f test.xml

      You will get the following error messages:

      Error at file /tmp/test.xsd, line 7, char 47
      Message: namespace 'http://www.w3.org/2001/XMLSchema' is referenced without import declaration

      Error at file /tmp/test.xsd, line 7, char 47
      Message: namespace 'http://www.w3.org/2001/XMLSchema' is referenced without import declaration

      Error at file /tmp/test.xsd, line 11, char 37
      Message: base type 't:isbn' not found in 'isbn2' definition

      There are two problems. The first is the bogus message in the first two errors. The second is the two duplicate error messages. The second problem disappears if we remove isbn2 type from the schema.

      Attachments

        1. test.xml
          0.1 kB
          Boris Kolpackov
        2. test.xsd
          0.3 kB
          Boris Kolpackov

        Activity

          People

            bsk Boris Kolpackov
            bsk Boris Kolpackov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: