|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] faq: operator precedence table?
except for a brief and incomplete list in xpath 3.4, i can find no
comprehensive operator precedence table for xpath.
if i had one i could tape it up on the wall next to the ones for
C, java, perl, and javascript.
one of the debits of not using list syntax (of the "<" or "(" variety)
is that such things are necessary....
for example, something that would tell me which of these are the same:
- a|b/c[1]
- (a|b/c)[1]
- (a|b)/c[1]
and so on.
the table is in order from least "tight", to most, with everything on
the same row being left-associative. something like this, except i'm sure
it is all incorrect:
or
and
=
!=
<=, <, >=, >
div, mod
','(comma)
+, - (binary)
* (multiply)
- (unary)
|
/, //
[]
$
:, ::, @, .., . (pattern), * (pattern)
. (number)
()
", '
thanks.
-mda
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
|

Cart








