beautypg.com

Attributes – HP e-CommerceXML Accelerator sa7150 User Manual

Page 32

background image

C H A P T E R 3 HP e-Commerce/XML Server Accelerator SA7150 User Guide

22

Comparison operators allow the SA7150 to look for specific values
in the XML data tree and compare them with corresponding values in
your preconfigured XML patterns. An XML pattern might look like
this:

URI Expression:

*/hr.asp

XML Expression:

//address[zip > 90000]

Because the server to which the XML pattern belongs is configured
for zip codes greater than 90000 (as defined in the XML expression
component of the XML pattern), and John K. Smith’s zip code is
92128, the SA7150 sends his employee data to that server. The
following table contains the available comparison operators

Attributes

Attributes are identified by the “at” sign (@). You can specify an
attribute as

@

, or use

@*

to select any attribute

relative to the context node.

Comparison
Operator

Name

Description

=

Equal to

Returns true if any values of the nodes specified in the pattern
equals given value

!=

Not equal to

Returns true if at least one value of the nodes specified in the
patterns does not equal given value

<

Less than

Returns true if at least one value of the nodes specified in the
patterns is less than the specified value

<=

Less than or
equal to

Returns true if at least one value of the nodes specified in the
patterns is less than or equal to the specified value

>

Greater than

Returns true if at least one value of the nodes specified in the
patterns is greater than the specified value

>=

Greater than
or equal to

Returns true if at least one value of the nodes specified in the
patterns is greater than or equal to the specified value

XML Comparison Operators