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

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
6.56Mb size Format: txt, pdf, ePub
ExprSingle
VarName
QName

The name
quantified expression
comes from the mathematics on which these expressions are based: the
some
expression is known in formal logic as an existential quantifier, while the
every
expression is known as a universal quantifier.

As with the
for
expression, these two expressions bind a range variable to every item in a sequence in turn, and evaluate an expression (the
satisfies
expression) for each of these items. Instead of returning the results, however, a quanitified expression evaluates the effective boolean value of the
satisfies
expression. In the case of
some
, it returns
true
if at least one of these values is
true
, while in the case of
every
, it returns
true
if all of the values are
true
. The range variables can be referenced anywhere in the expression following the
satisfies
keyword, and the expression following the
in

Other books

Double Take by Melody Carlson
Saved By The Belles by Albright, Beth
Silk Over Razor Blades by Ileandra Young
Above The Thunder by Renee Manfredi
King Solomon's Mines by H. Rider Haggard
Engaging Father Christmas by Robin Jones Gunn
Enders by Lissa Price
License to Shop by McClymer, Kelly