validating whether a element exists and has some specific value in xsl
Posted
by flash
on Stack Overflow
See other posts from Stack Overflow
or by flash
Published on 2010-03-23T08:27:16Z
Indexed on
2010/03/23
8:33 UTC
Read the original article
Hit count: 287
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.,
© Stack Overflow or respective owner