Let me get this straight:
You have two xsl documents named from.xsl and to.xsl.
You have one xml document
You have one C++ function
Somehow without changing the c++ function you want the xml document to be transformed using either one of the xsl documents!
Is that it?
If it is can you amend the xml document?
It is by grace we are saved!