You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Varalakshmi Kollipara <Va...@DigitalInsight.com> on 2004/01/13 17:24:35 UTC

RE: Paginate Transformer


Hello every one... I have a problem with Paginate Transformer. I am using
the Paginate transformer in two pipelines in the following way.

<map:match pattern="page*.xml">

	......doing some generation over here....

	<map:transform type="paginate" src="page.xml">
		<map:parameter name="page" value="{1}"/>
	</map:transform>
	<map:serialize type="xml"/>
</map:match>

<map:match pattern="sort*.xml">

	......doing some generation over here....

	<map:transform type="paginate" src="page.xml">
		<map:parameter name="sort" value="{1}"/>
	</map:transform>
	<map:serialize type="xml"/>
</map:match>

What do the parameters 'page', 'sort' indicate...?

And my page.xml is:
<pagesheet xmlns="http://apache.org/cocoon/paginate/1.0">
	<rules>
		<count type="element" name="Item" num="8"/>
		<link type="unit" num="1"/>
	</rules>
</pagesheet>

When I access the second pipeline the generated xml code shows the first
pipeline page1.xml as the current URI in the XML part that corresponds to
the Paginate transformer.

Thanks in advance,
Lakshmi.
 

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


Re: Paginate Transformer

Posted by Nicolas Toper <nt...@jouve.fr>.
You need  to do <map:match pattern="page(*).xml">>
Le Mardi 13 Janvier 2004 17:24, Varalakshmi Kollipara a écrit :
> Hello every one... I have a problem with Paginate Transformer. I am using
> the Paginate transformer in two pipelines in the following way.
>
 <map:match pattern="page*.xml">>
>
> 	......doing some generation over here....
>
> 	<map:transform type="paginate" src="page.xml">
> 		<map:parameter name="page" value="{1}"/>
> 	</map:transform>
> 	<map:serialize type="xml"/>
> </map:match>
>
> <map:match pattern="sort*.xml">
>
> 	......doing some generation over here....
>
> 	<map:transform type="paginate" src="page.xml">
> 		<map:parameter name="sort" value="{1}"/>
> 	</map:transform>
> 	<map:serialize type="xml"/>
> </map:match>
>
> What do the parameters 'page', 'sort' indicate...?
>
> And my page.xml is:
> <pagesheet xmlns="http://apache.org/cocoon/paginate/1.0">
> 	<rules>
> 		<count type="element" name="Item" num="8"/>
> 		<link type="unit" num="1"/>
> 	</rules>
> </pagesheet>
>
> When I access the second pipeline the generated xml code shows the first
> pipeline page1.xml as the current URI in the XML part that corresponds to
> the Paginate transformer.
>
> Thanks in advance,
> Lakshmi.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


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