xsl-list
[Top] [All Lists]

Re: If statement and empty attribute

2003-05-06 13:28:59
Karl J. Stubsjoen wrote:
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'">

Try
  <xsl:if test="not(@viewable) or @viewable!='false'">

J.Pietschmann



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>