<p>I have several xml files, the names of which are stored in another xml file. </p>

<p>I want to use xsl to produce a summary of the combination of the xml files. I remember there was a way to do this with the msxml extensions (I'm using msxml).</p>

<p>I know I can get the content of each file using <code>select="document(filename)"</code> but I'm not sure how to combine all these documents into one.</p>

<p>21-Oct-08 I should have mentioned that I want to do further processing on the combined xml, so it is not sufficient to just output it from the transform, I need to store it as a node set in a variable.</p>

Have a look at the
```
document()
```
function documentation
.
You can use
```
document()
```
to load further XML documents during the transformation process. They are loaded as node sets. That means you would initially feed the XML that contains the file names to load to the XSLT, and take it from there:
```
```
<xsl:copy-of select="document(@href)/"/>
```
```