ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

the fastest way to test if variable is empty

Subject: the fastest way to test if variable is empty
From: Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx>
Date: Wed, 8 Dec 2004 16:20:30 +0100
if variable contains
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.