OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Questions on XQuery operators

[ 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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS