qexo-general
[Top][All Lists]
Advanced

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

RE: [Qexo-general] How to use fn:input()


From: Denis Goeury
Subject: RE: [Qexo-general] How to use fn:input()
Date: Wed, 29 Jan 2003 11:13:29 -0500

Hi Ivelin,

I had a look at msg00053. IMHO, QEXO doesn't need to be tied to the
servlet world. If it could be working in a standalone way it would be
much more flexible and it could always be embedded in a servlet if
needed. For fn:input(), I was thinking about something like:

XQuery xq = new XQuery();
xq.setInput(source);

Where 'source' could be an InputStream, URL, File, Reader, Document or
something similar. I also like the concept of XQueryContext used by
Oracle because it clearly separates the context from the query itself. 

The problem with fn:input() is that it still gives only one input
source. How can you bind multiple sources to a query?

Denis Goeury


-----Original Message-----
From: Ivelin Ivanov [mailto:address@hidden 
Sent: Wednesday, January 29, 2003 9:44 AM
To: Per Bothner; Denis Goeury
Cc: address@hidden
Subject: Re: [Qexo-general] How to use fn:input()

All other implementations that I've looked at (Oracle, MS, X-Hive) do
not
deal with input.
They serve db queries.

Denis, look at a recent message and cast your vote on the proposed
implementation of
document(item, node*) node* and input(), which allows xql scripts to
talk to
each other in a web environment.

http://mail.gnu.org/archive/html/qexo-general/2003-01/msg00053.html




-=Ivelin=-
----- Original Message -----
From: "Per Bothner" <address@hidden>
To: "Denis Goeury" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, January 28, 2003 4:58 PM
Subject: Re: [Qexo-general] How to use fn:input()


> Denis Goeury wrote:
> > Hi,
> >
> > Providing and input document through fn:document() is working fine
but
> > how can you use implicit (unnamed) input documents, which are
accessed
> > using the input() function?
>
> I haven't implemented inpu() because I don't know what the
> expected semantics are.  I.e. how do you bind specified
> base to whetever the input() function returns?  The
> specification is vague:  "The content of the input sequence
> is determined in an implementation-defined way."  What did
> you have in mind, and what do you want to use it for?
> Presumably one way to define the input sequence is using
> a command-line flag, but should that be an expression,
> a url for an exmpl, a url for a datbase, ...?  You also
> want to be able to set the input sequence from a Java
> program, presumably.
>
> It would be very useful if somebody could look at other
> XQuery implementations, and tell me what they do.
> --
> --Per Bothner
> address@hidden   http://www.bothner.com/per/
>
>
>
> _______________________________________________
> Qexo-general mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/qexo-general





reply via email to

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