Chapter 11. XPath 2.0 Boolean, QName, and Date Functions
IN THIS CHAPTER
Boolean Functions
As you know, there are no explicit values named true
and false
that you can embed in XPath 2.0 expressions. Instead, if you need a true
or false
value, you use the Boolean constructor functions fn:true
and fn:false
. In addition, the fn:not
function flips the logical value of its argument. Here are the Boolean functions in overview:
fn:true
returns thexs:boolean
valuetrue
.fn:false
returns thexs:boolean
valuefalse
.fn:not
flips the Boolean value of its ...
Get XPath: Navigating XML with XPath 1.0 and 2.0 Kick Start now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.