Can you put two conditions in an xslt test attribute?

joe picture joe · Nov 25, 2008 · Viewed 208.4k times · Source

Is this right for When 4 < 5 and 1 < 2 ?

<xsl:when test="4 &lt; 5 AND 1 &lt; 2" >
<!-- do something -->
</xsl:when>

Answer

phihag picture phihag · Nov 25, 2008

Not quite, the AND has to be lower-case.

<xsl:when test="4 &lt; 5 and 1 &lt; 2">
<!-- do something -->
</xsl:when>