Hi, I don't think that this would help, because I would need to call this first pipeline with distinct names but I don't know that. And I can't pass a pattern to a pipeline, right? I thought of using a directory generator and use a XSL to get the actual file names but how would I then automatically call the second pipeline for each filename?
> Peter Klotz wrote: >> how can one generate a document from multiple sources without knowing >> their exact names using a pattern? Given some files blah_*.xml, I >> would like to aggregate all these and get one XML document to apply >> stylesheets etc. >> >> But I have never seen that it is possible to use patterns in >> map:aggregate/map:part or map:generate? Something like [...] > You could try it with "two" pipelines: > > <map:match pattern="blah_*.html"> > <map:aggregate element="root"> > <map:part src="cocoon:/blah_{1}.xml"/> > </map:aggregate> > </map:match> > > <map:match pattern="blah_*.xml"> > <map:generate src="blah_{1}.xml"/> > <map:serialize type="xml"/> > </map:match> > HTH > > Michael --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>