Instead of your perl script, you could use aggregation: <map:aggregate element="site"> <map:part src="cocoon:/xml-file1.xml"/> <map:part src="cocoon:/xml-file2.xml"/> </map:aggregate>
and then transform the aggregated XML stream with your stylesheet. Regards, Elmar -----Ursprüngliche Nachricht----- Von: Sorin Marti [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 16. Dezember 2002 13:26 An: [EMAIL PROTECTED] Betreff: Perl in cocoon Hi all, In my directory (webapps/cocoon/mount/energie/) i've got a number of XML-Files which which I want to put together. I have a perl script which does that for me. So my question is: Is it possible to run this perl script? The whole thing should look like that: XML-File 1 --------- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE energieverbrauch SYSTEM "enrep.dtd" > <energieverbrauch jahr='1980'> <energietraeger> <bezeichnung>Erdölprodukte</bezeichnung> <wert>488300</wert> </energietraeger> [...] <energietraeger> <bezeichnung>Müll und Industrieadfälle</bezeichnung> <wert>3700</wert> </energietraeger> </energieverbrauch> XML-File 2,3,4 ------------ Have the same structure as number one... Should become: combined.XML So when I request for "combined.html" it should run the perl-script (put the files together, create combinded.xml) then compile (with "energiebericht2html.xsl") and display combined.html is this possible? Thanks in advance for any advice Sorin Marti --------------------------------------------------------------------- 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]>