[
https://issues.apache.org/jira/browse/XALANC-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145914#comment-13145914
]
Steven J. Hathaway commented on XALANC-676:
-------------------------------------------
I have done some cleanup for empty strings, empty nodesets, and entity files
not found. The current SVN trunk should properly return without installing a
new Xerces XMLReader instance if the XMLURL file is not found.
Please verify that this issue is resolved.
> XalanTransformer's EntityResolver fails to work on Posix platforms in case of
> entity file absence
> -------------------------------------------------------------------------------------------------
>
> Key: XALANC-676
> URL: https://issues.apache.org/jira/browse/XALANC-676
> Project: XalanC
> Issue Type: Bug
> Components: XalanC
> Affects Versions: 1.10
> Environment: Solaris 5.9, 5.10
> Reporter: Aleksandr Vinokurov
> Attachments: xalan-676.patch
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> A custom EntityResolver is not called when operating with XalanTransformer in
> situation when an ``entity'' file is absent.
> The root of this problem goes from Xerces-C++ bug
> https://issues.apache.org/jira/browse/XERCESC-1807
> But IMHO Xalan-C code is some kind miss-designed in one point (sorry for such
> brave suggestion): XSLT/XSLTProcessorEnvSupportDefault.cpp:145 (rev. 471584),
> when getting an URL from the ``urlString'' with the mechanism of local
> directory structure. The ``URISupport::getURLFromString'' function in its way
> uses Xerces-c's ``XMLPlatformUtils::getFullPath'' which operates uncommon in
> POSIX system and throws an exception if file does not exists. I consider that
> URL's construction is needed for the check some lines below, but such URL
> plays a role of a hash and constructing it on local directories hierarchy is
> not a good idea.
> I don't actually know what is considered in all the cases of usage of
> ``URISupport::getURLFromString'' function, so I think it must be discussed
> how to fix this issue.
> With all my respect to the developers.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]