I have this XML in one file below
cont
With XSL 2.0:
I tested this using Saxon, which supports XSLT 2.0, using the command below:
java -jar saxon9.jar -xsl:transform.xsl -s:input.xml
This command generates three files: file1.xml, file2.xml and file3.xml.
file1.xml
file2.xml
file3.xml
$ cat file1.xml content file 1