|
From: | Per Bothner |
Subject: | Re: [Qexo-general] Query on multiple documents |
Date: | Tue, 25 Mar 2003 08:10:38 -0800 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3) Gecko/20030312 |
Ali Mesbah wrote:
Hi, I was wondering if it is possible to execute an XQuery on multiple documents. For instance imagine I have 5 documents called person1.xml, person2.xml, ... and each person has one or more phone numbers. I would like an XQuery which iterates over all the 5 documents and retrieves the phone numbers from those files.let $persons = document(all the personN.xml documents)Is in qexo something like this possible and if so how?
For example: for $doc in (document("person1.xml"), document("person2.xml"), ...) for $phone in $doc//phone return ... or (only in newest CVS version of Qexo): for $doc in document(("person1.xml", "person2.xml", ...)) for $phone in $doc//phone return ... -- --Per Bothner address@hidden http://per.bothner.com/
[Prev in Thread] | Current Thread | [Next in Thread] |