HP e-Commerce / XML director server appliance sa8250 - Users Guide

C H A P T E R 2 HP e-Commerce/XML Director Server Appliance SA8250 User Guide
20
This table shows function call samples.
Sample Pattern Description
//employee/name[starts-
with(@lastName,S)]
Matches if there is an employee element with a name child element
that has a lastName attribute value starting with S
//id[contains(@eid,
456)]
Matches if there is an id element with the value of an eid attribute
containing 456
//id[contains(translate
(@jobClass,abcdefghijk
lmnopqrstuvwxyz,
ABCDEFGHIJKLMNOP
QRSTUVWXYZ),
SYSTEM ENGINEER)]
Matches if there is an id element with the value of a jobClass
attribute containing System Engineer. All characters in the
jobClass attribute are converted to uppercase before being passed
to the contains function.
Function Call Samples