How external calls from XSLT to Java behave completely depends on the XSLT processor used - it is not defined in the standard. I expect the answer to be yes - the DOM document will become visible as a node and can be processed like any other node (for exmaple it can be copied to the result tree using xsl: copy-of) - but you can only ask a question regarding a specific XSLT processor.
source
share