I want to merge multiple xml files. I find a good command which merges perfectly two xml files Merge Command. so to merge multiple file, put the command into a shell script.
the script is as follow:
#!/bin/bash
for i in `ls recep` //recep is the directory containing the list of xmlfiles
do
saxon tt merge.xslt with=$i > aux //tt is a file, we create it and initiate
it to the first xml file
cp aux tt
done
cat tt
however, the script excute only one merge
thank you for your help
xsl:mergeinstruction w3.org/TR/xslt-30/#merge-instruction you might be able to use with a collectionfor-each-source="uri-collection('recep/?select=*.xml')", to implement the whole merging with one transformation.