xsl-list
[Top] [All Lists]

the fastest way to test if variable is empty

2004-12-08 08:20:30
Hi all.

Can anybody tell me the fastest way, how to test, if variable contains some 
text or number?

For now, i am using test "string-length($variable)=0", but seems not to be the 
fastest.

Somebody tells me to use test "$variable", but with my XalanC, it seems to be 
true everytime.

Thanks.

PS. variable can't contain nodes, it may contains only alphabetics or numbers 
and whitespaces.

-- 


S pozdravom,
Dusan Zatkovsky

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--