[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XPath 2.0 conditional expression syntax


Subject: RE: [xsl] XPath 2.0 conditional expression syntax
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 2 Jan 2005 16:52:50 -0000

> 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/


Current Thread
Keywords