This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: how to test if attribute=''


Vasu: I tried test="not(@whatever ='')" but not working (maybe it works for you).
finaly I've found that test="string(@whatever)" is working prity nice

thanks anyway

Ani Lopez


-----Mensaje original-----
De: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]En nombre de Vasu Chakkera
Enviado el: miércoles, 03 de julio de 2002 11:36
Para: xsl-list@lists.mulberrytech.com
Asunto: Re: [xsl] how to test if attribute=''


>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@overthenet.tv>
>Reply-To: xsl-list@lists.mulberrytech.com
>To: "xsl-list" <xsl-list@lists.mulberrytech.com>
>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




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]