[
Lists Home |
Date Index |
Thread Index
]
#
# I am wondering whether XQuery supports the "IN" operator as
# SQL. For example, is the following XQuery (find a person with
# age 20, 25 or 30)
# valid:
#
# for $p in input()//person
# where $p/age in (20, 25, 30)
# return $p
#
The "=" operator does this (as in XPath)
# for $p in input()//person
# where $p/age = (20, 25, 30)
# return $p
Michael Kay
|