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

RE: XPath 2.0: Conditional Expression (Was Re: XQuery

Subject: RE: XPath 2.0: Conditional Expression (Was Re: XQuery 1.0 and XPath 2.0 Functions and Operators Version 1.0)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 7 Sep 2001 22:44:58 +0100
xquery conditional expression
> Another XPath 2.0 requirement that doesn't seem to be present in the
> F&O WD is 2.2 "Must Provide a Conditional Expression". I imagined that
> conditional expressions would be supported with an operator, something
> like:
>
>   boolean-expression ? true-expression : false-expression
>
> Is this functionality going to appear in a different document?

Yes. The F&O document is intended only to contain pure functions and
operators, that is things that evaluate all their operands/arguments and
then produce a result that depends on their values. (Admittedly it currently
contains some things that don't quite meet these criteria, e.g. "and" and
"or"). Constructs like "a/b" and "a[b]" and if-then-else don't fall into
this pattern, and will be described as part of the built-in semantics of the
language.

To save you guessing, the current thinking for the syntax of conditional
expressions is

if (condition) then expression-1 else expression-2

Mike 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.