It is possible to create multiple output files as a result of XSL processing in XSLT 2 with tag
This is usefull for example when some large database is available as a single XML document from which we need to extract only
certain parts and/or modify it. This particular example takes export of accounts from the Waveset Identity Management system,
filters them, modifies them and saves them in a separate file per account.
This principle might be however usefull in many other cases.
This work is largely based on an example from IBM developer works
Any method for running XSL transformation may be used, but it has to support XSLT 2 spec, which is not that common. One of a few available options is to use Saxon which I like to use directly from Eclipse IDE via it's Run configurations...