Boolean operators, Function calls – HP e-CommerceXML Accelerator sa7150 User Manual
Page 34

C H A P T E R 3 HP e-Commerce/XML Server Accelerator SA7150 User Guide
24
Boolean Operators
Boolean operators are logical operators between expressions. These
operators are used in the PathExpression and the FilterExpression, as
shown below.
•
PathExpression BooleanOperator PathExpression
•
FilterExpression BooleanOperator FilterExpression
Function Calls
NOTE: FunctionCalls
can only be specified
within FilterExpressions.
Function calls allow you to specify partial patterns within
FilterExpressions. FunctionCall expressions are evaluated by using
the FunctionName to identify a supported function, evaluating each
of the arguments if needed, and calling the function passing the
Operator
Name
Description
and
Logical AND operator
Performs a logical AND operation
or
Logical OR operator
Performs a logical OR operation
Boolean Operators
Sample Pattern
Description
//restaurant[@genre and
Food_Rating]
Matches if there is a restaurant element, a genre attribute, and a
Food_Rating child element. genre and Food_Rating are associated
with the restaurant element.
//restaurant[@genre or
Food_Rating]
Matches if there is a restaurant element, a genre attribute, or a
Food_Rating child element. genre and Food_Rating are associated
with the restaurant element.
//restaurant or //theater
Matches if there is a restaurant element or a theater element
anywhere in the XML data tree.
Boolean Operator Examples