validating whether a element exists and has some specific value in xsl
- by flash
how to check the tag exists and the value is 'On' do something in xsl
please correct me.,
<xsl:if test="$status and $status='On'">
//do something
</xsl:if>
can we skip checking whether the tag exists and direclty check for the value.
<xsl:if test="$status='On'">
//do something
</xsl:if>
is it a correct practice.,