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

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

The fact that an
AndExpr
is defined in terms of a
ComparisonExpr
just means that the family of operators including
=
and
eq
are next in precedence order after
and
. These operators were described earlier in this chapter.

An
or
expression returns true if either of its operands is true, while an
and
expression returns true if both of its operands are true.

The operands of
and
and
or
are converted to
xs:boolean
values by taking their effective boolean value. This applies the same rules as for the conditional (
if
) expression described in Chapter 7, and the
boolean()
function, described in Chapter 13. For example, a string is false if it is zero-length, and a sequence is false if it is empty.

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

Other books

Area 51: The Legend by Doherty, Robert
Heroes R Us by Mainak Dhar
Shroud of Evil by Pauline Rowson
Breaker by Richard Thomas
Answered Prayers by Danielle Steel
Highland Lover by Hannah Howell
The Badger's Revenge by Larry D. Sweazy