xsl-list
[Top] [All Lists]

RE: XPath 2.0 conditional expression syntax

2005-01-02 09:52:50

Could someone explain to me why parentheses are needed round the
condition in an if expression? It seems highly illogical to me.

XPath has no reserved words, so

if +2 < $x

is a legal XPath expression in which "if" is treated as an element name.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>