cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linczak, Jonathan W." <Lincza...@hiram.edu>
Subject Read file and use it's contents in pipeline?
Date Fri, 18 Feb 2005 19:56:06 GMT
OK,

This is probably a really simple question, but I didn't find any quick answers, so I really
hope you can help.

Say I have a very simple XML file (simple.xml) with the following contents:

<roottag>
  <option>Some value</option>
</roottag>

I would like to create a pipeline that reads the XML file above, and then use it in the pipeline,
perhaps like this:

<map:pipeline>
  <map:match pattern="something">
    <map:read src="simple.xml"/>
    <map:redirect-to url="http://www.someplace.com/test.php?id={value inside <option>
tag}"/>
  </map:match>
</map:pipeline>

Any way to grab the contents of the file read and use it in the pipeline?

Jon

Mime
View raw message