qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qexo-general] Query on multiple documents


From: Ali Mesbah
Subject: Re: [Qexo-general] Query on multiple documents
Date: Tue, 25 Mar 2003 17:32:00 +0100
User-agent: Mutt/1.3.99i

As quoted from Per Bothner <address@hidden>:
> 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 ...

The question was actually if there is an implicit way of doing this. You do not
want to specify all the names of the xml documents. 

something like: 

for $doc in document(*)
for $phone in $doc//phone return ...


> -- 
>       --Per Bothner
> address@hidden   http://per.bothner.com/
> 
> 

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600




reply via email to

[Prev in Thread] Current Thread [Next in Thread]