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

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
6.06Mb size Format: txt, pdf, ePub
Expression
Syntax
IfExpr
if
(
Expr
)
then
ExprSingle
else
ExprSingle

The
else
branch is constrained to be an
ExprSingle
(an expression containing no top-level comma) because a trailing comma would be ambiguous when the expression appears, for example, as an argument in a function call. The
then
branch is constrained to be an
ExprSingle
purely for symmetry. Any expression can be used as the condition, and although it would be unusual for this expression to use the
,
operator, there is no reason to disallow it.

Other books

Enchant Me by Anne Violet
03.She.Wanted.It.All.2005 by Casey, Kathryn
Altar of Anubis by Vremont, Ann
0692321314 (S) by Simone Pond
Breathless by Kelly Martin
Under a Turquoise Sky by J. R. Roberts
Godplayer by Robin Cook