Dana
Dana

Reputation: 1248

Merging in multiple XML sources in XSLT by calling java methods

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

Answers (1)

Michael Kay
Michael Kay

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

Related Questions