This seems brilliant, but in my case it doesnt work. What am I doing wrong?
My pipeline:
<map:match pattern="parseimdbtitle">
<map:generate type="html"
src="http://www.imdb.com/title/{request-param:imdbtitle}" /><!-- doesnt need url encoding because imdbtitle always one word -->
<map:transform src="stylesheets/parseimdbtitle.xsl"/>
<map:serialize type="xml"/>
</map:match>
Flow fragment:
out=new java.io.FileOutputStream("/tmp/out.xml");
cocoon.processPipelineTo("parseimdbtitle", {"imdbtitle":"tt0338466"} ,out)
Error:
Could not get resource http://www.imdb.com/title/To me it seems to indicate that {request-param:imdb} is empty when the pipeline is called.
/Joakim
Luca Morandini wrote:
joakim verona wrote:
So I guess my basic question is: how do I make a pipeline that can take both request parameters and
"bizdata" parameters at the same time? Or is it the other way around? Should the pipeline
be made to accept "bizdata" parameters only?
Well, let's put it this way: if I had to send two parameters ("x" and "y") to pipeline "foo.xml", I'd do the following ("os" being the pipeline's output and "x" and "y2 the Javascript variables holding request parameters' values):
cocoon.processPipelineTo('foo.xml', {'x' : x, 'y' : y}, os);
Regards,
----------------------------------- Luca Morandini - GIS Consultant [EMAIL PROTECTED] http://xoomer.virgilio.it/ukmorand/ -----------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
