SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Saxon on .NET
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
| Introduction
| Constants
| Variable References
| Function Calls
| Axis steps
| Parentheses and operator precedence
| Filter expressions
| Path expressions
| Cast as, Treat as
| Set difference and intersection
| Union
| Arithmetic expressions
| Range expressions
| Comparisons
| Instance of and Castable as
| Conditional Expressions
| Quantified Expressions
| For Expressions
» | Boolean expressions: AND and OR
| Sequence expressions
Function Library
Standards Conformance

# Boolean expressions: AND and OR

The expression `E1 and E2` returns true if the effective boolean values of `E1` and `E2` are both true.

The expression `E1 or E2` returns true if the effective boolean values of either or both of `E1` and `E2` are true.

Next