Thanks for the tip.
I read something in an XML forum that this was not possible with the current XSL, except in certain parsers like Saxon, Xerxes,
using the xsl:document or even the redirect:. But I had no luck getting either to do what I wanted.
I would think that this is not that difficult after all it is essentially what we are doing with chunk xsl.