[xsl] merging document from filelist

Subject: [xsl] merging document from filelist
From: "Breygin, Victor" <Victor.Breygin@xxxxxxxxxxxxxxx>
Date: Fri, 17 Dec 2004 17:11:41 -0500
Hello folks,

can anyone advise how the list of multiple documents can be merged in one
"super document"?

suppose we have a list of files  a.xml, b.xml, c.xml ... etc. 
I would like to have a document node that is a union of all the input files,
something like

<xsl:variable name="super_doc" select="document(a.xml) | document(b.xml) |
document(c.xml) ..." />

I have trouble concatenating a list of arbitrary length (number of files),
should I use a recursive call-template for doing this?

thanks a lot for your help!

cheers,
victor

Victor Breygin
Consultant, Integrated Customs Systems,
Canada Border Services Agency
1-(613) 952-7077

Current Thread