Filters - HP P4518A - Traffic Management Server Sa7150 User Manual

Hp e-commerce/xml server accelerator sa7150 - user guide
Hide thumbs Also See for P4518A - Traffic Management Server Sa7150:
Table of Contents

Advertisement

C H A P T E R 3
Sample Pattern
//PurchaseOrder
[Amount > 10000]
//PurchaseOrder
[@CustomerID > 9000]
//PurchaseOrder
[Amount > 10000 and
@CustomerID > 9000]
XML Operations

Filters

Filters are identified by a FilterExpression enclosed within square
brackets, [ ]. These define a pattern within a pattern following this
general structure:
( ('/' | '//') Element )? [ FilterExpression
]
Filter expressions are applied to every element returned by the
preceding path pattern. They return a match if the server is a valid
choice according to the filter expression.
The operative component of a FilterExpression is a comparison
expression or any FunctionCall expression that returns a string value,
which compares either an element or an attribute against a specified
value. An element in a FilterExpression refers to the child element of
the context node, while an attribute refers to the attribute of the
context node.
Comparison expression syntax:
(Element | Attribute | FunctionCall)
ComparisonOperator
FunctionCall expression syntax:
FunctionName '(' (Argument (',' Argument)*)?
')'
You can combine comparison expressions and the FunctionCall
expression with Boolean operators and parentheses to create complex
filter expressions.
Description
Matches a
PurchaseOrder
value greater than 10000
Matches a
PurchaseOrder
value greater than 9000
CustomerID
Matches a
PurchaseOrder
value greater than 10000 and with an attribute
greater than 9000
Comparison Expression Samples
Value
element with a child element
element with an attribute
element with a child element
CustomerID
Amount
Amount
value
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sa7150

Table of Contents