cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: [Ann/RFC] Virtual Sitemap Components
Date Mon, 11 Apr 2005 19:06:01 GMT
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?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message