logo       

RE: (no subject): msg#00115

text.xml.saxon.help

Subject: RE: (no subject)

Saxon will recognize an array of Strings returned by the extension function as representing a sequence of strings; it will also recognize a java List (or in fact any Java Collection).
 
The strings shouldn't have quotation marks around them - you are returning a run-time string, not a compile-time string-literal.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx [mailto:saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx] On Behalf Of W Jirapanthong
Sent: 17 June 2005 09:25
To: Saxon-help Saxon-help
Subject: [saxon] (no subject)


 
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

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise