On Thu, 6 Jun 2002, Hahn Kurt (CHA) wrote:
> I'm trying to aggregate two files with the cocoon protocol:
>
> <map:match pattern="pvDoc/*.pdf">
> <map:aggregate>
> <map:part src="cocoon:/pv/title/{1}.pdf" element="title"
> ns="http://some.thing.com/title"/>
> <map:part src="cocoon:/pv/{1}.pdf" element="pvtexte"
> ns="http://some.thing.com/pvtexte"/>
> </map:aggregate>
> <map:serialize type="xml"/>
> </map:match>
>
> where part 1 points to:
> <map:match pattern="pv/*.pdf">...
>
> and part 2 to:
> <map:match pattern="pv/title/*.pdf">
> Both are working correctly if called directly, but if I insert the above
> part into the sitemap, I'm getting only errors. Is the way I'm passing the
> value from the URL correct? I need this parameter for the queries which are
> executed in the 2 parts.
I hope cocoon:/pv/title/{1}.pdf and cocoon:/pv/{1}.pdf are a xml file??!
You should also declare the root element of aggregate.
<map:aggregate element="the-aggregated-content">
<!-- define your map:parts here -->
</map:aggregate>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>