cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20088] - XIncludeTransformer: xml:base does not work with Cocoon's pseudo protocols
Date Thu, 22 May 2003 11:10:12 GMT
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=20088>.
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=20088

XIncludeTransformer: xml:base does not work with Cocoon's pseudo protocols





------- Additional Comments From bruno@outerthought.org  2003-05-22 11:10 -------
Ok, I had a look at SourceResolver.resolveURI(location, base, parameters), but
didn't like what I saw.

==> If I do the following using java.net.URL:

URL url = new URL(new URL("http://localhost:8080/dir1/dir2/file.xml"),
                          "../otherfile.xml");
System.out.println(url.toExternalForm());

Then the result is: http://localhost:8080/dir1/otherfile.xml


==> If I do the equivalent with SourceResolver:

Source source = resolver.resolveURI("../otherfile.xml",
                  "http://localhost:8080/dir1/dir/file.xml", new HashMap());
logger.debug("source = " + source.getURI());

Then the result is: http://localhost:8080/dir1/dir/file.xml/../otherfile.xml

which is obviously not correct.

Mime
View raw message