transfer commit, untested
it now works again
Moved to XPathDocument for xslt transforms