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

comparing true and false with 0 or 1

Subject: comparing true and false with 0 or 1
From: "Fraser Goffin" <goffinf@xxxxxxxxxxx>
Date: Fri, 25 Nov 2005 17:41:44 +0000
0 false
I am trying to compare two element values that are of type boolean. In either case the XML instance may contain either true or false or 0 or 1. I've been looking at the boolean(), number(), and string() functions but I can't seem to create an expression that evaluates correctly. e.g. :-

(true = 1) = true
(true = 0) = false
(false = 1) = true
(false = 0) = false

Thanks

Fraser.

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.