[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] If statement and empty attribute
Subject: [xsl] If statement and empty attribute From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx> Date: Tue, 6 May 2003 12:42:16 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Sorting alphabetical entr, Ben Trafford | Thread | Re: [xsl] If statement and empty at, J.Pietschmann |
Re: [xsl] xsl:when is not allowed i, Jeff Kenton | Date | Re: [xsl] XSLT editor(open source), Márcio Fernando Kell |
Month |