Just as an addendum, I need the org.xmldb.api.modules.XQueryService also
for the ability to compile expressions.
From: Gil Tayar [mailto:Gil.Tayar@...]=20
Sent: Wednesday, 22 December, 2004 17:52
To: eXist mailing list
Subject: [Exist-open] Casting to xmldb's XQueryService
When calling collection.getService("XQueryService", "1.0") it seems that
I receive an object of type RemoteXPathQueryService, which is an "exist"
class (as opposed to an org.xmldb class).
All this is well and good. Unfortunately, I need to cast to
org.xmldb.api.modules.XQueryService, but RemoteXPathQueryService does
not implement this interface. Funnily enough, it does implement
XQueryService, but only org.exist's.
I would assume that org.exist.XQueryService should implement
The workaround would be to cast it to
org.xmldb.api.modules.XPathQueryService, which again, ironically, it
does implement. But I need the "declareVariable" functionality of
Another workaround would be to use org.exist's XQueryService, but it
would be nice to keep the application as neutral from an implementation
So my questions are:
1. Is this a bug, or am I misunderstanding something?
2. Any other workaround that doesn't force me to import org.exist.*?
Chief Technology Officer
Business: +972 (3) 766 1806
Mobile: +972 (54) 634 4457
From: Gil Tayar <Gil.T<ayar@we...> - 2004-12-22 19:30:28
BTW - is there a way to undeclared variables when using an
The general idea is this - I want to use the same queryService each time
for different queries - each with its own declared variables. So I need
to declare variables, query and then undeclare so that the next query
Service will not be affected by the previous one.
I used a declareVariable(_name_, null) in the hope that it will work,
but have not tested it yet.
Is it the right approach? If not, is there another approach?
[mailto:exist-open-admin@...] On Behalf Of Wolfgang
Sent: Wednesday, 22 December, 2004 20:22
Subject: Re: [Exist-open] Casting to xmldb's XQueryService
> When calling /collection/.getService("XQueryService", "1.0") it seems=20
> that I receive an object of type RemoteXPathQueryService, which is an=20
> "exist" class (as opposed to an org.xmldb class).
> All this is well and good. Unfortunately, I need to cast to=20
> *org.xmldb.api.modules.*XQueryService, but RemoteXPathQueryService
> not implement this interface. Funnily enough, it /does/ implement=20
> XQueryService, but only org.exist's.
> I would assume that *org.exist.*XQueryService should implement=20
Yes, I forgot that the XQueryService had been added to the xmldb API. I=20
have now modified org.exist.xmldb.XQueryService to extend=20
has been dropped. It is replaced by
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.=20
Exist-open mailing list