You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hiloliddin Karimov <HK...@central.nbu.com> on 2002/07/17 17:01:47 UTC
Is possible generate XML source that stored in session?
Hi,
I have Action that get result from DB and store it in session as XML,
and transformer that paginate the XML source.
<!-- get results from DB and store it to session -->
<map:match pattern="show.html">
<map:act set="process">
<map:parameter name="descriptor"
value="context://myapp/templates/show_form.xml"/>
</map:act>
<map:generate type="serverpages" src="templates/show.xsp"/>
<map:transform src="stylesheets/myapp.xsl"/>
<map:serialize/>
</map:match>
<!-- paginate source.xml file -->
<map:match pattern="show(*).html">
<map:generate src="source/source.xml"/>
<map:transform type="paginate" src="pagesheets/images.xml">
<map:parameter name="page" value="{1}"/>
</map:transform>
<map:transform src="stylesheets/result.xsl"/>
<map:serialize/>
</map:match>
Instead of source.xml file, must paginate XML source that get from session.
How can I do it?
Thanks in advance!
Hill
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Is possible generate XML source that stored in session?
Posted by Luca Morandini <lu...@tin.it>.
Hiloliddin,
I think you may use readDOMSessionTransformer to do this.
Best regards.
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Hiloliddin Karimov [mailto:HKarimov@central.nbu.com]
> Sent: Wednesday, July 17, 2002 5:02 PM
> To: Cocoon-Users
> Subject: Is possible generate XML source that stored in session?
>
>
> Hi,
>
> I have Action that get result from DB and store it in session as XML,
> and transformer that paginate the XML source.
>
> <!-- get results from DB and store it to session -->
> <map:match pattern="show.html">
> <map:act set="process">
> <map:parameter name="descriptor"
> value="context://myapp/templates/show_form.xml"/>
> </map:act>
> <map:generate type="serverpages" src="templates/show.xsp"/>
> <map:transform src="stylesheets/myapp.xsl"/>
> <map:serialize/>
> </map:match>
>
> <!-- paginate source.xml file -->
> <map:match pattern="show(*).html">
> <map:generate src="source/source.xml"/>
> <map:transform type="paginate" src="pagesheets/images.xml">
> <map:parameter name="page" value="{1}"/>
> </map:transform>
> <map:transform src="stylesheets/result.xsl"/>
> <map:serialize/>
> </map:match>
> Instead of source.xml file, must paginate XML source that get from session.
> How can I do it?
>
> Thanks in advance!
> Hill
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>