qexo-general
[Top][All Lists]
Advanced

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

Re: [Qexo-general] Multiple instances of gnu.xquery.lang.Xquery error


From: Per Bothner
Subject: Re: [Qexo-general] Multiple instances of gnu.xquery.lang.Xquery error
Date: Wed, 17 Sep 2003 22:26:46 -0700
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030827

Yana Dimitrova Kadiyska wrote:

String query="declare namespace ev = \"class:MyFOO\" for $s in ...
return ...{ev.EVAL(query1) }"; (new gnu.xquery.lang.Xquery()).eval(query);

The idea is that upon evaluation of query, Qexo will call the EVAL
function, which among other things will create another
gnu.xquery.lang.Xquery instance and evaluate query1, which is a string
containing another(independent) query. All works well except EVAL does
not work correctly--there seems to be a major state mix-up of query and
query1.

I know this is a weird way to use Xquery, but if you have an idea of why
bad things are happening, please let me know.

Offhand, no, not without more information.

Though I wonder why you're doing this instead of re-using the same
XQuery.  (You should be able to call eval recusively using the same
XQuery instance.)
--
        --Per Bothner
address@hidden   http://per.bothner.com/






reply via email to

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