Peter Klotz wrote:
Hi,
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
<map:generate src="file:/{url}/blah_*.xml"/>
or
<map:aggregate element="root">
<map:part src="file:/{url}/blah_*.xml"/>
</map:aggregate>
Is it or is there another approach to this presumably common problem?
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 help, Peter
---------------------------------------------------------------------
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]>
---------------------------------------------------------------------
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]>