XInclude unable to include file if the base file system id is relative
----------------------------------------------------------------------
Key: XERCESC-1879
URL: https://issues.apache.org/jira/browse/XERCESC-1879
Project: Xerces-C++
Issue Type: Bug
Components: XInclude
Affects Versions: 3.0.1
Reporter: Boris Kolpackov
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]