On 2/15/06, Peter Neu <[EMAIL PROTECTED]> wrote:
> Hello Bertrand,
>
> I managed to send my xml in a post request to cocoon and retrieve the ouput
> back in pdf. But one thing I couldn't figure out so far is how to actually
> read the xml from the post request into my sitemap. Can you please provide a
> short code snippet?
>
> The relevant part looks like this:
>
> <map:match pattern="pdf">
>  <map:generate src="data/user.xml"/>  //still a hard coded resource
>  <map:transform src="stylesheets/user.xsl"/>
>  <map:serialize type="fo2pdf"/>
>  </map:match>
>

Don't you just want something like:

<map:match pattern="pdf/*">
    <map:generate src="data/{1}"/>

Or is the source name not something the user can specify? If not,
where is it supposed to come from?

--
Peter Hunsberger