Adding the root element to map:aggregate fixed the error, I can now display what once will be the aggregated page. But, I don't get the content of my parts, I just get this:
<pvDoc> <title xmlns="http://some.thing.com/title" /> </pvDoc> I changed the sitemap a little to make it clearer, it now looks like this: <map:match pattern="pvDoc/*.pdf"> <map:aggregate element="pvDoc"> <map:part src="cocoon:/pv/title/{1}.xml" element="title" ns="http://etat.geneve.com/title"/> <map:part src="cocoon:/pv/{1}.xml" element="pvtexte" ns="http://etat.geneve.com/pvtexte"/> </map:aggregate> <map:serialize type="xml"/> </map:match> As I mentioned before, the parts called individually work fine. I'm suspecting that maybe the parameter isn't passed correctly. Can somebody confirm (or disconfirm ) if my syntaxe is correct? Kurt -----Message d'origine----- De : Stephan Michels [mailto:[EMAIL PROTECTED]] Envoyé : jeudi, 6. juin 2002 10:06 À : '[EMAIL PROTECTED]' Objet : Re: A little help with aggregation 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]> --------------------------------------------------------------------- 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]>