Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 18277 invoked by uid 500); 22 May 2003 11:08:04 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 18263 invoked from network); 22 May 2003 11:08:03 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 22 May 2003 11:08:03 -0000 Received: (qmail 1872 invoked by uid 50); 22 May 2003 11:10:12 -0000 Date: 22 May 2003 11:10:12 -0000 Message-ID: <20030522111012.1871.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: cocoon-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 20088] - XIncludeTransformer: xml:base does not work with Cocoon's pseudo protocols X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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.