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

RE: String comparison

Subject: RE: String comparison
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 13 Oct 2003 17:49:07 +0100
xsl string null
> 
> I am trying to comparing to see is a string is null,

There is no such thing as "null" in the XPath data model. Do you mean
the string is empty (zero-length?)
> 
> I have a param named userid, i want to check to see if 
> '$userid' is not null.
> 
> I tried <xsl:if test="$userid!=''>, this does'nt seem
> to help.
> 
Show us how $userid is declared.

I suspect I can guess the answer: it is a result tree fragment, not a
string.

Michael Kay


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


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.