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: Fri, 4 Apr 2003 12:21:50 +0200
User-agent: Mutt/1.3.99i

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


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

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




reply via email to

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