I would like to know how to write XSLT to split an XML file into multiple XML files according to these requirements:
Use XSLT 2.0, like this stylesheet:
Note: xsl:result-document instruction.