Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 17842 invoked by uid 500); 18 May 2002 15:30:22 -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 17830 invoked from network); 18 May 2002 15:30:21 -0000 Message-ID: <3CE66D1E.4390D12B@apache.org> Date: Sat, 18 May 2002 17:02:54 +0200 From: Stefano Mazzocchi X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [Bugs] URLSource References: <3CE29CE1.4030608@apache.org> <3CE41FB5.8080008@yahoo.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N "J.Pietschmann" wrote: > > Stefano Mazzocchi wrote: > > NOTE: there is no official indication on how the file: URI should be > > addressed, but all these > > > > file:/file > > file://file > > file:///file > > > > are all valid URIs and should point to the same file (at least, this was > > my understanding). > > Your understanding is wrong. Only the last is a valid URI. > The RFC for this appears to be > http://www.rfc-editor.org/rfc/rfc2396.txt > and some predecessors. > > > It could be possible to add > > > > file:file > > > > to indicate a relative location. > > This is wrong too. An URI starting with an URI scheme > identificator (like file:) is *always* an absolute URI. > This: > /file > is an *relative* URI, despite being an *absolute* path. > > > This is normally achieved by avoiding > > to indicate the protocol (such as in "file"), but since we need a > > protocol to identify the handler, "file:file" might just be a way to > > encode relativity in file positioning. > > A relative URI is resolved against a base URI, which sepcifies > the URI scheme. If your base URI is a file URL, *all* relative > URIs encountered are resolved to files. You can't have a base > HTTP URI and suddenly have a relative URI point to a file. > > Well, hope this helps: > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102027988321347&w=2 Many thanks for the clarification. Ok, people, I'm sure there is some patching to do now :) -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org