Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.1
-
None
-
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.