|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: the fastest way to test if variable is empty
If your variable is always string, I recommend you boolean() function ( http://www.w3.org/TR/xpath#function-boolean ) --- Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx> wrote: > 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 > > ===== Marian http://www.utdallas.edu/~mgo031000/ __________________________________ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








