|
Home > Online Product Documentation > Table of Contents > Specifying Boolean Expressions and Functions Specifying Boolean Expressions and FunctionsThis section provides information on how to specify Boolean expressions and functions in queries. It includes the following topics: Using Boolean Expressions
You can specify Boolean expressions in the subqueries in filters. You specify the Boolean
You can use parentheses to group collection specifications and operators for clarity or where the normal precedence is inadequate to express an operation. Case SensitivityOperators are case sensitive. Spaces are not significant. You can omit them or include them for clarity. ExamplesThe following query returns all authors who have at least one degree and one award:
The next query finds all authors who have at least one degree or award and at least one publication:
Following is a query that finds all authors who have at least one degree and no publications:
Calling Boolean FunctionsThis section describes the Boolean functions that you can call in a query. The operations you can perform are Converting an Object to Boolean
In some situations, you might want to force a Boolean comparison. The XPath processor performs a Boolean comparison if either operand is a Boolean value. Consequently, if neither operand is a Boolean value, call the
The
The
This query is equivalent to the following query:
Obtaining Boolean Values
To obtain the opposite Boolean value, call the
The
To obtain the value
The
To obtain the value
The
Determining the Context Node Language
To determine whether the language of the context node is the language you expect it to be, call the
The
If there is no such attribute, then
In both situations, case is ignored. For example:
This returns
|
Learn Stylus Studio in 6 Minutes
Learn Stylus Studio in 6 Minutes is the world's fastest introduction to XML development using Stylus Studio. In just six minutes, learn how to leverage Stylus Studio's powerful XML tools and utilities to simplify XML development.
XML Grid View
The XML Grid View is a visual interface for editing tablular data structures using an intuitive spreadsheet-like interface.
Improving XSLT and XQuery Performance with Stylus Studio
This online video demonstration covers XQuery and XSLT performance tuning using the Stylus Studio XSLT profiler and the XQuery profiler.
XML Videos
Stylus Studio online XML video demonstrations illustrate how easy it is to learn advanced XML editing techniques. Now playing: Java Code Generation, Convert to XML, Grid View, and many other informative video demonstrations.