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

后端 未结 1 1752
逝去的感伤
逝去的感伤 2021-01-16 01:39

I\'m stumped as to why the following example program refuses to apply my stylesheet properly. It seems that dyn:evaluate in Xalan 2.7.1 is refusing to process c

相关标签:
1条回答
  • 2021-01-16 02:36

    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.

    0 讨论(0)
提交回复
热议问题