XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (369 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
9.58Mb size Format: txt, pdf, ePub
ads

Boolean Expressions

This section concludes the chapter with a description of the operators
and
and
or
.

There is no
not
operator in XPath, it's provided as a function instead, and is described in Chapter 13, on page 850.

Expression
Syntax
OrExpr
AndExpr (
or
AndExpr )*
AndExpr
ComparisonExpr (
and
ComparisonExpr )*

The syntax shows that the
and
operator binds more tightly than
or
, so that
A
and
B
or
C
and
D
means
(A
and
B)
or
(C
and
D)
. Personally, I prefer to use parentheses to avoid any doubt.

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
9.58Mb size Format: txt, pdf, ePub
ads

Other books

Lily in Full Bloom by Laura Driscoll
No Friend of Mine by Ann Turnbull
Explosive Alliance by Catherine Mann
Cam - 04 - Nightwalkers by P. T. Deutermann
In Winter's Grip by Brenda Chapman
Missing by Sharon Sala
Crash Into You by Kels Barnholdt
Our Happy Time by Gong Ji-Young