[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
your test
<xsl:if test="@whatever !=''"> need not mean what it is intended to mean.
you may try <xsl:if test="not(@whatever ='')">
The above two expressions are not the *same* though it looks logical to assume so.If there is no *whatever* attribute , the first test is false while the second is true.
vasu
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] how to test if attribute=''
Subject: Re: [xsl] how to test if attribute='' From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Wed, 03 Jul 2002 09:35:51 +0000 |
your test
<xsl:if test="@whatever !=''"> need not mean what it is intended to mean.
you may try <xsl:if test="not(@whatever ='')">
The above two expressions are not the *same* though it looks logical to assume so.If there is no *whatever* attribute , the first test is false while the second is true.
vasu
From: "Aniceto" <aniceto@xxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: "xsl-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] how to test if attribute='' Date: Wed, 3 Jul 2002 10:50:32 +0200
Hi: I need to test if an attribute has some text or not whatever='' whatever='sdfbzf' <xsl:if test="@whatever !=''"> is not working whis is the simplest way to test it? thanks in advance
ani lopez
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to test if attribute=, Jarkko . Moilanen | Thread | RE: [xsl] how to test if attribute=, Aniceto |
RE: [xsl] encoding issues, bryan | Date | RE: [xsl] Counting nodes - now spec, Américo Albuquerque |
Month |