You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by beyaNet Consultancy <be...@ntlworld.com> on 2004/04/24 14:32:44 UTC
Read values from sitemap into flowscript
Hi,
how do I read values from a sitemap into a flowscript? For example what
i want to do is the following:
1. An image request is made:
<image src="artistImage/${id}/128/102/1.jpg"/>
which calls the following site map pipe:
<map:match pattern="**artistImage/*/*/*/*.jpg">
<map:call function="svg"/>
</map:match>
the result of the function is then passed, sendPage("svg1",
{..........});, to the following sitemap pipe:
<map:match pattern="svg1">
<map:generate type="jxt" src="jx/svg.jxt">
<map:serialize type="svg2jpeg"/>
</map:match>
Thanks in advance for you help.
Peter
Re: Read values from sitemap into flowscript
Posted by beyaNet Consultancy <be...@ntlworld.com>.
Hi,
problem solved.
Peter
On 24 Apr 2004, at 13:32, beyaNet Consultancy wrote:
> Hi,
> how do I read values from a sitemap into a flowscript? For example
> what i want to do is the following:
>
> 1. An image request is made:
>
> <image src="artistImage/${id}/128/102/1.jpg"/>
>
> which calls the following site map pipe:
>
> <map:match pattern="**artistImage/*/*/*/*.jpg">
> <map:call function="svg"/>
> </map:match>
>
> the result of the function is then passed, sendPage("svg1",
> {..........});, to the following sitemap pipe:
>
> <map:match pattern="svg1">
> <map:generate type="jxt" src="jx/svg.jxt">
> <map:serialize type="svg2jpeg"/>
> </map:match>
>
> Thanks in advance for you help.
>
> Peter