Relative URIs can be resolved incorrectly in document() calls
-------------------------------------------------------------
Key: XALANJ-2491
URL: https://issues.apache.org/jira/browse/XALANJ-2491
Project: XalanJ2
Issue Type: Bug
Security Level: No security risk; visible to anyone (Ordinary problems in
Xalan projects. Anybody can view the issue.)
Components: Xalan
Affects Versions: 2.7.1
Environment: Windows XP, JRE 1.6.0_11
Reporter: David Eckel
When using certain nested XSL and XML file structures and relative paths within
document() calls in select attributes, it is possible for Xalan to incorrectly
resolve the relative URI. In the attached test files, test.xml is styled by
/xsl/nested/test.xsl, which imports test2.xsl, which makes document() calls.
Example file structure:
/test.xml
/xsl/test2.xsl
/xsl/nested/test.xsl
Error messages:
<PATH>/xsl/test2.xsl; Line #17; Column #49; Cannot load requested doc:
<PATH>\xsl\test.xml (The system cannot find the file specified)
<PATH>/xsl/test2.xsl; Line #22; Column #57; Cannot load requested doc:
<PATH>\xsl\test.xml (The system cannot find the file specified)
--
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]