defining external variables when using BaseX in server mode

Wednesday, 25 August 2010 · 1 message
GB
Godmar Back25 Aug 2010 18:35 #

Hi,

is it possible to create bindings for external variables when using BaseX's server mode?

For instance, we have a query that declares:

declare variable $id as xs:string external;

When using XQJ, 'id' would be bound as bindNode().

In our server-based implementation, we manually substitute all occurrences of $id with its value before running the query.

Obviously, this is not robust: for instance, occurrences of $id in string
literals would be substituted as well, even when they should not (e.g.,
"$id")

Is there a way to leave $id declared as external, but assign a value for it when using BaseX's server mode?

- Godmar


⚡Generated with XQuery