i have a xml with some structure like this:
<data>
<cond>5 < 10</cond>
</data>
Is it possible to have something evaluated by xsl like this?:
<xsl:when test="data/cond">
<!-- do something if 5 is smaller than 10 -->
</xsl:when>
Regards
Kai
There some processors providing an extension function, for instance Saxon with http://www.saxonica.com/documentation/extensions/functions/evaluate.xml respectively http://www.saxonica.com/documentation/extensions/functions/evaluate-node.xml which you can use as e.g.
<xsl:when test="saxon:evaluate-node(data/cond)">...</xsl:when>. But neither XSLT 1.0 or 2.0 have such a feature built in.