I have this XML in one file below
<?xml version="1.0" encoding="utf-8"?>
<document>
<file> <!--File1.xml-->
<content>content file 1</content>
</file>
<file> <!--File2.xml-->
<content>content file 2</content>
</file>
<file> <!--File3.xml-->
<content>content file 3</content>
</file>
</document>
How do I write an XSLT to break it to multiple files like below
File1.xml
<?xml version="1.0" encoding="utf-8"?>
<document>
<file>
<content>content file 1</content>
</file>
</document>
File2.xml
<?xml version="1.0" encoding="utf-8"?>
<document>
<file>
<content>content file 2</content>
</file>
</document>
etc..
Thank you for help.