You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Multani, Dal" <Da...@softwareagusa.com> on 2001/08/15 17:58:22 UTC
Sitemap and http request
Hi,
I recently installed Cocoon 2 and know very little about the product. This
is what I am trying to do:
I am calling page 2 from page 1 and am passing parameters with http request,
and have coded the following in the sitemap.xmap (for page 2)-
<map:match pattern="videopdf">
<map:generate src="http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>
<map:transform src="stylesheets/page/video-fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
The sitemap entry for page 1 looks like this -
<map:match pattern="videoc">
<map:generate src="http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videoc"/>
<map:transform src="stylesheets/page/Videos.xsl"/>
<map:serialize type="html"/>
</map:match>
How can I capture the parms from hhtp request and pass on with the following
URL for page 2 :
<map:generate src="http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>
Any help or examples would be greatly appreciated. Thanks.
Dal Multani
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Sitemap and http request
Posted by Ling Kok Choon <ko...@brel.com>.
hi Dal Multani,
According what i understand, u can capture the parameter from the http request by 2 ways :
1) use Action.
2) Use XSP
1) Use Action
you can go to cocoon2's website and get information about the Action. If i not wrong, in the
action u can can a request object and retrive all the information from the request.
the structure is like :
<map:match pattern="videopdf">
<map:act type-"ACTION-NAME">
<map:generate src="http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>
<map:transform src="stylesheets/page/video-fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:act>
</map:match>
2) Use XSP
same way, try go to the cocoon2's XSP web site and u can get some important information about
the XSP.
Hope this information can help u ..
regards
Kok Choon.
--------------------------------------------------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <ko...@brel.com>
Date: 08/16/01
Time: 08:34:08
This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions
--------------------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
C2:Xpath and generators...
Posted by Karl Øie <ka...@gan.no>.
i know this is some really newbie questions, but is it possible to:
- filter a generator through xpath?
- create a custom serializer that can access session variables?
in advance thanks!
mvh karl
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>