You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/02/02 06:25:05 UTC
DO NOT REPLY [Bug 25416] -
org.apache.xml.utils.SystemIDResolver.getAbsoluteURI(String urlString, String base) catches MalformedURIException with applet
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25416>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25416
org.apache.xml.utils.SystemIDResolver.getAbsoluteURI(String urlString, String base) catches MalformedURIException with applet
------- Additional Comments From dcaveney@the-wire.com 2004-02-02 05:25 -------
I think I've found a workaround for this bug: supply a SystemID for the
DOMSource object that holds the stylesheet that is trying to import another
stylesheet. In the attached test case, I've replaced:
DOMSource styleSource = new DOMSource(styleDoc);
...with:
DOMSource styleSource = new DOMSource(styleDoc);
styleSource.setSystemId("dummy.xsl");
...and this seems to provide a string for the call to getBaseIdentifier().
This works ok for the test case, but is there any other impact in calling
setSystemId() in this way?