Thanks a lot!
I will try it. But where can i find documentation abou this (the sub matchers)?

Is it true that the latest stable version of Cocoon 2.1 is 2.1.11? As
i remember there was an version 2.1.18, am i right?

Zsombor

On Mon, Sep 29, 2008 at 13:22, Alexander Daniel <[EMAIL PROTECTED]> wrote:
> On 29.09.2008, at 10:31, Varga Zsombor wrote:
>
>> Hi!
>>
>> I'd like to run an action before every request, and after it use
>> matchers to decide what to happen. For example:
>>
>>
>> <map match pattern="a.html">
>>  <map:generate type="serverpages" src="AA.xsp">
>>  <map:transform src="XXX.xsl"/>
>>  <map:serialize/>
>> </map:match>
>>
>> <map match pattern="b.html">
>>  <map:generate src="b.xml">
>>  <map:transform src="YYY.xsl"/>
>>  <map:serialize/>
>> </map:match>
>>
>> <map:match pattern="*">
>>  <map:act type="my-action">
>>   <???????>
>>  </map:act>
>>  <map:serialize/>
>> </map:match>
>>
>
> You could use sub-matchers:
>
> <map:match pattern="*">
>        <map:act type="my-action">
>
>                <map:match pattern="a.html">
>                        <map:generate type="serverpages" src="AA.xsp"/>
>                        <map:transform src="XXX.xsl"/>
>                </map:match>
>
>                <map:match pattern="b.html">
>                        <map:generate src="b.xml"/>
>                        <map:transform src="YYY.xsl"/>
>                </map:match>
>
>        </map:act>
>        <map:serialize/>
> </map:match>
>
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to