Add or subtract numerical values.
An AdditiveExpr
consists of either a simple
MultiplicativeExpr
or of two or more
MultiplicativeExpr
expressions that are combined by the operators
+
or -
.
It corresponds to the expression AdditiveExpr
defined in
XPath, Section 3.5,
Rule 25.
Select all patients born after 1959 (all patient
nodes
for which the numeric value of the born
element +1 is greater than
1960):
/patient[born + 1 > 1960]
Select all patients older than 40 years (all patient
nodes for which the difference between 2001 and the numeric value of the
born
element is greater than 40):
/patient[(2001 - ./born) > 40]
RelationalExpr |