|
Subject: [xsl] Comparison evaluation in XPath From: Gregory Murphy <Gregory.Murphy@xxxxxxxxxxx> Date: Thu, 13 Mar 2003 16:56:35 -0800 (PST) |
Looking at the grammar for XPath, it appears that the comparison and
equality operators are left-associative. So,
x > y > z
should be evaluated as if it were
( x > y ) > z
How then should the value be obtained? If evaluation is performed at each
branch of an LALR(1) parse of an XPath expression, then an expression like
3 > 2 > 1
would be reduced first to
true > 1
which would evaluate to false. But shouldn't the answer be true?
// Gregory Murphy <Gregory.Murphy@xxxxxxx>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] [ANN] ActiveState releases Vi, Eric Promislow | Thread | Re: [xsl] Comparison evaluation in , David Carlisle |
| Re: [xsl] Cold Fusion, Mulberry Technologie | Date | [xsl] Sort and paging problem, Fran |
| Month |