On Thu, 28 Mar 2002, James Andersen wrote: > OK, I'm pretty sure this is a simple thing to do but I'm fairly new to > Cocoon and I cannot figure it out. I've looked at the FAQ about > concatenating files and I get "Stylesheet directed termination" errors. > I've tried the document() function and I get transformHandler errors. I > don't really care how it is done but can anyone explain how to merge > multiple XML documents into single data source for processing with an XSL > file?
One way is to use aggregation in the sitemap, e.g.: <map:aggregate element="page"> <map:part src="docs/{1}.xml"/> <map:part src="docs/{2}.xml"/> </map:aggregate> Another way is to use XInclude (or CInclude) in your XML, e.g.: <xi:include href="about/index.xml#xpointer(page/content/section[@title='Include para']/paragraph[position() = 1])" parse="xml"/> Hope that helps, Andrew. -- Andrew Savory Email: [EMAIL PROTECTED] Managing Director Tel: +44 (0)870 741 6658 Luminas Internet Applications Fax: +44 (0)870 28 47489 This is not an official statement or order. Web: www.luminas.co.uk --------------------------------------------------------------------- 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]>