hi !
i just came across the documentation for the lenyadoc: protocol at
http://lenya.zones.apache.org/docu/1_4/reference/protocols/lenyadoc.html .
its description of relative (lenyadoc:/...) vs. absolute
(lenyadoc://...) seems inconstitent with general usage and also with
assumptions about protocol specifiers elsewhere in lenya code.
afaik, common usage for relative paths is proto://, and absolute paths
(if the concept makes sense in that particular protocol) are denoted as
proto:/// (compare file:///). thus, a protocol specifier always ends
with "://".
http:// and ftp:// (no third slash) are no counter-examples, since there
is no such thing as a "relative" fqdn and the file-system based part
starts later in the url.
the main reason to stick to this notation is code such as this (from
o.a.l.cms.cocoon.source.FallbackSourceFactory)
// Remove the protocol and the first '//'
final int pos = location.indexOf("://");
or is there some sublety i have overlooked?
jörn
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]