|
Subject: faq: operator precedence table? From: "Mark D. Anderson" <mda@xxxxxxxxxxxxxx> Date: Sun, 12 Dec 1999 15:43:03 -0800 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| xslt 2.0 requests, Mark D. Anderson | Thread | xt : Extension Functions, Christopher Devenoge |
| xslt 2.0 requests, Mark D. Anderson | Date | xt : Extension Functions, Christopher Devenoge |
| Month |