cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varga Zsombor" <varga.zsom...@gmail.com>
Subject action for each request
Date Mon, 29 Sep 2008 08:31:35 GMT
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>


I know, that i can put the action around of all matcher, but there
could be lots of matchers in the pipeline.
And this solution is not good for me:
<map:match pattern="*">
  <map:act type="my-action">
     <map:generate type="serverpages" src="{../1}.xsp">
     <map:transform src="{../1}.xsl"/>
     <map:serialize/>
  </map:act>
  <map:serialize/>
</map:match>

Because there are differnt types of generators, and serializers.

Thanks

Zsombor

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message