cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: svg text image chaching pipeline
Date Thu, 17 Apr 2003 01:07:32 GMT
As we do 
( We 
only use the substring after the last minus (here 'login') as key for 
lookup in a dictionary. But you can pass the string directly to a 
transformer and add it as text.


<map:match pattern="svg-*-*.png">
   <map:generate src="{1}.xml"/>
   <map:transform src="addStringToSVG.xsl">
     <map:parameter name="string" value="{2}"/>
   <map:serialize type="svg"/>

Now you only need to write the stylesheet addStringToSVG.xsl, which adds 
the requested text to the SVG.



Kris Rasmussen wrote:
> Maybe they are, but what I am trying to do is generate textual images 
> based on the requested url.
> */Joerg Heinicke <>/* wrote:
>     Hello Kris,
>     what's the problem? Aren't the images cached per default? At
> we also use dynamically generated images, e.g. the
>     buttons or the nav links in the header.
>     Regards,
>     Joerg
>     Kris Rasmussen wrote:
>      > I would like to use svg to generate some title images on my site.
>      > However I want them to be generated once and cached according to the
>      > text that is being generated. What is the best way to do this?
>     Can I do
>      > the following:
>      >
>      > Create a pipeline that outputs svg images just like one that
>     reads in
>      > jpg images, and have it cache according to the url, and use the
>     url as
>      > input into the pipeline to determine what text to use to generate
>     the
>      > image. If I can do this could someone give an example pipeline?
>      >
>      > Thanks,
>      > Kris

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message