Subject: Re: [xsl] the fastest way to test if variable is empty From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 08 Dec 2004 11:36:37 -0500 |
Cheers, Wendell
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.
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-FO double line border, Ranjan K. Baisak | Thread | Re: [xsl] the fastest way to test i, Marian Olteanu |
RE: [xsl] the fastest way to test i, Michael Kay | Date | RE: [xsl] the fastest way to test i, Wendell Piez |
Month |