cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [RT] FOM
Date Tue, 27 May 2003 16:20:34 GMT
on 5/27/03 7:18 AM Jeff Turner wrote:

> On Tue, May 27, 2003 at 01:44:45AM -0500, Stefano Mazzocchi wrote:
> ....
> 
>>How?
>>
>>Using a link-translating protocol.
>>
>>Example:
>>
>> <html>
>>  <head>
>>   ...
>>   <link src="link:/styles/main.css" ...>
> 
> 
> Hooray ;)  For those who didn't know, this is what the linkrewriter block
> does.  In this example, it would look up the '/styles/main.css' key in
> the 'link' InputModule, whatever that may be.

Nononono, the above is not only a lookup, it's more complex.

It's basically paving the road for

 <link src="link:skin:/styles/main.css" ...>

where

 link: -> is the link-translation protocol
 skin: -> is the block role
 /styles/main.css -> is the absolute location in the context of the block

but it could well be

 link:styles/main.css

which is equivalent to

 link:this:styles/main.css

but different from

 link:this:/styles/main.css

hope you see my point.

-- 
Stefano.



Mime
View raw message