cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agssa.net>
Subject Re: [Ann/RFC] Virtual Sitemap Components
Date Tue, 12 Apr 2005 05:12:23 GMT
On Lun, 11 de Abril de 2005, 14:06, Leszek Gawron dijo:
> Stefano Mazzocchi wrote:
>> Sylvain Wallez wrote:
>>
>>> Stefano Mazzocchi wrote:
>>>
>>> <snip/>
>>>
>>>> virtual readers? hmmmm, never thought of that one. What does that buy
>>>> you? I mean, it's not harmful to have it, but do you see any real use
>>>> of that?
>>>
>>>
>>>
>>>
>>> Consider an application using graphical buttons. You may want be able
>>> to either read images on the filesystem or generate them on the fly by
>>> combining an SVG prototype with some i18n dictionary :
>>>
>>> <map:match pattern="buttons/*.jpg">
>>>  <map:read type="button" src="{1}"/>
>>> </map:match>
>>>
>>> The reader will be (yes, I love this syntax :-) )
>>> <map:virtual-reader>
>>>  <map:generate src="buttons-prototype.svg"/>
>>>  <map:transform src="insert-i18n-key-in-svg.xsl"/>
>>>  <map:transform type="i18n"/>
>>>  <map:serialize type="svg2jpg"/>
>>> </map:virtual-reader>
>>
>>
>> Sure, but this is nothing different from
>>
>>  <map:match pattern="buttons/*.jpg">
>>   <map:generate src="buttons-prototype.svg"/>
>>   <map:transform src="insert-i18n-key-in-svg.xsl"/>
>>   <map:transform type="i18n"/>
>>   <map:serialize type="svg2jpg"/>
>>  </map:match>
>>
> I might be stupid but how are your examples parametrized? Should be
> there {1} somewhere?

Not necesarily. ;-)

As a use case, is posible to define a "fallback" pipeline. All other
request goes to the same pipeline.

Best Regards,

Antonio Gallardo


Mime
View raw message