Luca,

I tried pasting in your test pipeline in my sitemap, and it returns the xml version of the imdb page as expected.

<map:match pattern="parseimdbtitletst">
  <map:generate type="html"
      src="http://www.imdb.com/title/tt0338466"; />
  <map:serialize type="xml"/>
</map:match>

So we are not having the exact same behaviour.

Some questions for you:

1) Which version of cocoon are you running? I'm running 2.1.3 on sun linux jdk 1.4.2_02
2) When you send parameters to a pipeline from flowscript, do you use {request-param:imdbtitle} to receive them?


Regards,
/Joakim

Luca Morandini wrote:

joakim verona wrote:

Luca,

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.


I beg to differ, I tried:
<map:match pattern="parseimdbtitle">
   <map:generate type="html"
       src="http://www.imdb.com/title/tt0338466"; />
   <map:serialize type="xml"/>
</map:match>

getting the same "Resource not found" error: smells like a HTMLGenerator issue to me.

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]



Reply via email to