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

possible value-of return values

Subject: possible value-of return values
From: "alex reuter" <areuter@xxxxxxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 14:38:52 -0400
value of return
Hello,

Given the following XML document:
<root>
<user name="Alex" password="Elephant" color=""/>
<user name="Reuter" password="Rhino"/>
</root>
I was wondering if anyone knew the distinction in return values between:
<xsl:value-of select="/root/user[@name='Alex']/@color"/>
And
<xsl:value-of select="/root/user[@name='Reuter']/@color"/>


My guess is they would both be null, but I need to execute logic which
hinges on whether the attribute exists and has a null value OR whether it
exists at all.

Anything you got would be great.

Thanks,

	Alex


 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.