As far as I understand, we can use 1 XSLT to read multiple xml files as inputs. May I know if there's a way to read multiple inputs and produce multiple outputs as well (within 1 XSLT)?
1 Answer
Yes, this is a standard feature of XSLT 2.0, with the xsl:result-document instruction.
Some XSLT 1.0 processors offer similar capabilities using vendor extensions, but it's not possible within the W3C standard.
2 Comments
Amrendra Kumar
How can we read multiple n number of file at a time in XSLT 2.0
Michael Kay
@AmrendraKumar Reading multiple files has always been possible with the document() function (or by supplying additional files as stylesheet parameters). Writing multiple files needs 2.0 or later.