qexo-general
[Top][All Lists]
Advanced

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

Re[2]: [Qexo-general] Query on multiple documents


From: heiko
Subject: Re[2]: [Qexo-general] Query on multiple documents
Date: Fri, 04 Apr 2003 12:57:56 +0200 (CEST)

Hello Ali,

yes there is a way.
in case you want to call via http somthing like 
http://myname.file [and you mapped file to your xql
servlet]
and you want to call "myname.xml".

you could see the solution in the latest "nested
document error" thread in this mailinglist.

hope that helps.

the servlet takes the uri and extracts the filename.

greetings 

Heiko

Friday, April 4, 2003, 12:21:50 PM, you wrote:

AM> Is there anyway of passing the name of the xml
document to the XQuery so that
AM> you could keeping the name dynamic?


AM> As quoted from Per Bothner <address@hidden>:
>> Ali Mesbah wrote:
>> 
>> >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 ...
>> 
>> Of course that syntax is out of the question ...
>> 
>> An "implicit" way of getting all the XML files is
>> probably difficult to add - not for implementation
reasons,
>> but because you need to specify what you want
precisely.
>> Instead, what you want is a *convenient* way to do
so.
>> One way might be
>>    for $doc in document(files-matching("*.xml"))
>> or even
>>    for $doc in all-xml-files()
>> 
>> You still have to define files-matching() or
>> all-xml-files() clearly, before even implementing
them.
>> (Note that most URL schemes have no way of finding
>> all matching URLs, so you're basically restricted
>> to file: URL.)
>> 
>> (Please cc the list in the future in cases where
others
>> may find the discussion helpful.)
>> -- 
>>       --Per Bothner
>> address@hidden   http://per.bothner.com/
>> 
>> 




-- 
Best regards,
 Heiko                           
mailto:address@hidden




reply via email to

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