Evaluate a string-expression in XSL

Posted by Jerzakie on Stack Overflow See other posts from Stack Overflow or by Jerzakie
Published on 2010-06-18T14:43:24Z Indexed on 2010/06/18 15:33 UTC
Read the original article Hit count: 218

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about xsl

Related posts about evaluate