Evaluate a string-expression in XSL
- by Jerzakie
Is there any way to evaluate a string expression in XSL?
example:
<myItem id="1">
<validator expression="$someVariable = '3'" />
</myItem>
...
<xsl:variable name="someVariable" select="3" />
<xsl:if test="@expression"> ...
I realize this syntax does not work the way I want it to, but is there any way to store the test expression in a variable and then evaluate the expression?