|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] If statement and empty attribute
Hi,
I have an if statement which should evaluate to true when the attribute
viewable='true' or does not exist. It would evaluate to false only when the
attribute viewable equals 'false'. I've got the following:
<xsl:if test="@viewable!='false'">
<xsl:value-of select="$currentVAL"/>
</xsl:if>
Which works, if the attribute viewable exists, but if it doesn't exist then
the statement is always false. Any suggestions? It needs to evaluate to
true if the attribute does not exist.
Karl
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








