>At any rate, I've no idea how, within a transformation, you'd even get >access to the the original input DOM,
Xalan-J extension functions which ask for a DOM view of the document will normally be passed the original DOM. More efficient than our doing yet another layer of proxying, and it gives you access to information which the DTM view suppresses. It does obviously expose the risk of someone trying to alter that DOM. All we can tell you is: Don't.
