I have several xml files, the names of which are stored in another xml file.
I want to use xsl to produce a summary of the combination of the xml files. I remember
Here is just a small example of what you could do:
file1.xml:
Text from file1
file2.xml:
Text from file2
index.xml:
file1.xml
file2.xml
summarize.xsl:
Applying the stylesheet to index.xml gives you:
Text from file1 Text from file2
The trick is to load the different documents with the document function (extension function supported by almost all XSLT 1.0 processors), to output the contents as part of a variable body and then to convert the variable to a node-set for further processing.