Combining multiple XML sources in XSLT by calling java methods

I know that you can create java objects and call methods from XSLT. If the method I call returns a DOM document, can it be combined into an XML processed document?

+3
source share
1 answer

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.

+1
source

Source: https://habr.com/ru/post/1794987/


All Articles