[Home] [By Thread] [By Date] [Recent Entries]


# 
#   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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member