[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|