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

XInclude unable to include file if the base file system id is relative

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • XInclude
    • None

    Description

      There is a strange behavior in XInclude implementation in that if the including XML file is parsed with a relative path as system id, the inclusion fails with the 'no scheme found in URI' error message. That is, if I parse it as '/tmp/text.xml', it works but not if I parse it as 'text.xml'. To reproduce this error you need to provide a custom input source since the ones provided by Xerces-C++ (e.g., LocalFileInputSource) make the system id absolute if the passed path is relative (or you can call setSystemId(rel_path) after the call to LocalFileInputSource c-tor).

      Note that similar logic that is used in schema location works fine with relative paths.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: