You can for example use
http://cocoon.apache.org/2.1/userdocs/matchers/wildcarduri-matcher.html
to extract the page number from the request URI:
<map:match pattern="page_*.html">
<map:generate .../>
...
<map:transform type="filter">
<map:parameter name="element-name" value="row"/>
<map:parameter name="count" value="10"/>
<map:parameter name="blocknr" value="{1}"/>
</map:transform>
</map:serialize>
</map:match>
A request for page_5.html will pass blocknr the value 5.
HTH, Alfred.
>-----Original Message-----
>From: fadi qutaishat [mailto:[EMAIL PROTECTED]
>Sent: Dienstag, 31. Mai 2005 17:17
>To: [email protected]
>Subject: Dynamic use of filter transformer
>
>
>HI All,
>
>I posted this quesion a week ago but I did not get any
>response, here it is again, it would be appreciated if
>anyone has an idea:
>
>I have got a long HTML page generated from a pipeline.
>My problem is that I do not want to view all content
>at once (because it is too long).
>I have used the filter transformer which was great
>since it helped in dividing the content into blocks
>and then I could choose the appropriate number of
>blocks to be displayed.
>
>The page after using the filter transformer looks
>similar to something like:
>
><page>
><block id= "1">
><block id= "2">
><block id= "3">
><block id= "4">
>...
>...
> </page>
>
>The problem now if I want to display to each block on
>a separate page I would need four pipelines. What if
>there are 20 blocks, do I need to have 20 pipeline?
>
>I read on the Cocoon documentation that it is possible
>to make the values of the count and blocknr properties
>as parameters and then pass their values through an
>action, but to be honest I do not know how to do it!
>
>Hints, ideas or maybe using different techniques would
>be appreciated.
>
>Regards,
>Fadi
>
>
>
>
>
>__________________________________
>Discover Yahoo!
>Have fun online with music videos, cool games, IM and more.
>Check it out!
>http://discover.yahoo.com/online.html
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
This message is for the named person's use only. It may contain confidential,
proprietary or legally privileged information. No confidentiality or privilege
is waived or lost by any mistransmission. If you receive this message in error,
please notify the sender urgently and then immediately delete the message and
any copies of it from your system. Please also immediately destroy any
hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended
recipient. The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this message are
those of the individual sender, except where the message states otherwise and
the sender is authorised to state them to be the views of the sender's company.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]