The Comparison Operators

Strictly speaking, the equal and not equal operators are also comparison operators. However, they don't involve relative evaluations of values, so they're often considered distinct from the set of inequality operators. Although all data types support equal and not equal examinations, there are some data types where inequality isn't easily defined.

XSL supports a complete set of inequality operators, as summarized in Table 17.2.

Table 17.2. The Inequality Comparison Operators
Operator(s)Meaning
$lt$ or <Less than
$ilt$Less than (not case sensitive)
$le$ or <=Less than or equal to
$ile$Less than or equal to (not case sensitive)
$gt$ or >Greater than
$igt$Greater than (not case sensitive)
$ge$ or >=Greater than or equal to
$ige$ ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.