I try to extend a function in Java, particularly, a statement should be like:

$t in namespace:ownfunction()

Expected output of the function is a set of string, for instance, "aaa", "bbb", "ccc" - which would be recogised by XQuery.

What I do is returning the output of ownfunction() as a string e.g. "\"aaa\",\"bbb\",\"ccc\"" . But XQuery seems to recognise as a long string.

How should I return the output of ownfunction in order to let XQuery parser recogise as a set of String? I actually require this for applying with "in" operator.

Any ideas would be much appreciated.

Cheers,
W. Jirapanthong


Lycos email has now 300 Megabytes of free storage... Get it now at mail.lycos.co.uk