Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
| Tutorials - How To Compare Members in an XPath Filter |
Page 2 of 2 |
In some situations, we want to compare two or more members using more sophisticated criteria than simple comparison. This often requires the inclusion of computation operators in a filter. Suppose we have a document used to record a set of test scores…

… and want to list the names of all students who got at least a “B” on their test.

The XPath filter in this example achieves this, comparing each test core to the total possible points using an arithmetic expression (note that Tectonic requires use of the “~/” symbol for division).
|
|
|