|
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
|
Stylus Studio Blogs
Blogging is the hottest fad on the Internet and Stylus Studio has jumped on the bandwagon. Bookmark these XML Blogs to keep up with all the latest XML buzz in the internet blogosphere. Includes RSS and Atom Feeds!
XML Differencing
Stylus Studio's integrated XML Differencing tool visually computes and analyzes any changes made to files or folders in a highly configurable, XML-aware fashion. Display text or tree views, with changes displayed in a merged view or side-by-side!
Using Stylus Studio's Database-to-XML Editor to Query and Update Relational Databases using SQL/XML
Watch and learn how easy it is to define relational-to-XML mappings for getting XML out of relational databases and updating databases from XML using industry-standard SQL/XML extensions and Stylus Studio's DB-to-XML data-source editor.
XML-to-XML Mapper
XML to XML mapping tools in Stylus Studio provide a powerful visual interface for mapping XML data from-and-to virtually any data format using industry-standard XSLT and XQuery technologies.