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

XSLoader can not load XSD which include relative schemaLocation while absolute path works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 2.9.0
    • None
    • XML Schema API
    • None
    • Window XP

    Description

      We use XSLoader to load XML schema. If the xsd file include relative schemaLocation a warning is thrown:
      [Warning] :2:46: schema_reference.4: Failed to read schema document '../base.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
      Changing to absolute path <xsd:include schemaLocation="file:///C:/.../base.xsd"/> the XSLoader will work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dlut_zxf xiaofeng.zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: