> 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?
Try to merge them *before* the XSL transformation. I my project I have the following pipeline : <map:match pattern="project/objects"> <map:generate src="project_dir/Entries.xml"/> <map:transform src="stylesheets/SearchObjects.xsl"/> <map:transform type="xinclude"/> <map:transform src="stylesheets/EditObjects.xsl"/> <map:serialize type="html"/> </map:match> where "Entries.xml" contains around 60 file references. The "SearchObjects.xsl" stylesheet replaces each reference with an XInclude instruction, then the XInclude transformer puts all the desired elements together, and finally the last stylesheet processes the result as a single file. Matthieu --------------------------------------------------------------------- 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]>