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
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.