RE: Variable Declaration in Query Prolog

Since parameters are often dependent on the system in which XQuery is
being used, they can be either encapsulated using a variable that is not
bound in XQuery but inside the query system or via a function that is
provided by the query system (i.e., mysystem:param('a')).

But I agree that it may be useful to spell this out in the XQuery spec,
so feel free to forward this to the comments list.

Best regards
Michael

> -----Original Message-----
> From: Per Bothner [mailto:per@bothner.com]
> Sent: Tuesday, February 05, 2002 16:54 PM
> To: Michael Rys
> Cc: www-ql@w3.org
> Subject: Re: Variable Declaration in Query Prolog
> 
> Michael Rys wrote:
> > That's seems right, but the grammar is not the issue. The issue is
that
> > LET bound variables (and FOR bound variables) are currently typed by
the
> > expression and not by an explicit type declaration. Asserting types
is
> > done by an ASSERT.
> 
> However, the Query-prolog does seem to need some way to define a
> "parameter" (such as a filename) passed in from the environment,
> rather like XSLT's 'param'.  This seems rather essential; is there
> some reason it's missing, or perhaps I just overlooked it?
> --
> 	--Per Bothner
> per@bothner.com   http://www.bothner.com/per/

Received on Tuesday, 5 February 2002 21:42:41 UTC