Reputation: 1248
I know it's possible to create java objects and call methods from XSLT. If the method I'm calling returns a DOM document is it possible to merge that into the XML document being processed?
Upvotes: 3
Views: 530
Reputation: 163625
The way external calls from XSLT to Java behave depends entirely on the XSLT processor you are using - it's not defined in the standard. I would expect the answer is yes - the DOM document will be made 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 the question in relation to a specific XSLT processor.
Upvotes: 1