You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jörn Nettingsmeier <po...@uni-duisburg.de> on 2006/02/11 20:58:16 UTC

lenyadoc protocol syntax?

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: pol-admin@uni-duisburg.de, Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: lenyadoc protocol syntax?

Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
Jörn Nettingsmeier wrote:

> or is there some sublety i have overlooked?

yuck, i just realized that cocoon does the same with the cocoon://
protocol (see for instance
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html under
"aggregating").

no way to get around that. still, the issue with protocol checks inside
lenya remains.




-- 
"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: pol-admin@uni-duisburg.de, Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org