开发者

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜