There's nothing similar in JXTemplate. For such cases, you have to duplicate the whole element in both parts of the condition.

Leszek Gawron wrote:

I have already asked on users group with no response so I'm trying here :

is there a way to set an attribute depending on xpath value? same in xslt
would be :


<xsl:if test="model/property = 'abc'">
   <xsl:attribute name="selected"/>
<xsl:if>

LG






Reply via email to