Is dyn:evaluate extension function known to have issues in Xalan-J 2.7.1?

半腔热情 提交于 2019-12-01 11:42:06

As feared, result tree fragments in XPath variables do not appear to be supported by dyn:evaluate in Xalan 2.7.1. Note that variables with non- result tree fragment values work.

I wrote my own extension function (dyn:evaluate equivalent) that evaluates XPath expressions but it also failed to process the result tree fragment in a variable (received this method is not yet supported exceptions). This may be a limitation of the XPath engine implementation provided by JAXP.

Perhaps it would work with a different XPath engine implementation.

I gave up on trying to make this work and will avoid filling result tree fragments into XPath variables when dyn:evaluate is in play. I will simply provide information needed to evaluate my conditions through an xsl:param string value instead of going the hard way of using an external XML file. An extension function to Xalan will check whether a selection is actually present or not.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!