Re: [bdbxml] Passing a list to XmlQueryContext::setVariableValue

John Ralls <jralls-qrp8yrQym94Q64ZEkIOog/u6G/[email protected]> Wed, 24 Aug 2005 17:43:48 -0700
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
On Aug 24, 2005, at 2:00 AM, John Snelson wrote:
> John Ralls wrote:
>> Is there a way to construct an XmlValue that will get turned into  
>> a  list for submission to XQuery?
> This is not currently possible using the C++ API, but it is  
> something that we are looking at implementing. Would this be of use  
> to you?

Yes.  It seems to me to be a pretty big hole.

>
> You can work around this restriction by doing this:
>
> declare variable $a as xs:string external;
> declare variable $b as xs:string external;
> declare variable $dtToGet as xs:string* := ($a, $b);
>
> ...
>
> And then set variables "a" and "b" in the XmlQueryContext.
>
> I hope this helps,

Afraid not.  I need to be able to pass an arbitrary number of  
elements in the list.

Since the XQuery part does work, I guess I'll have to do my own  
implementation to pass the list to it.
Good thing DBXML is open source.

Regards,
John Ralls


------------------------------------------
To remove yourself from this list, send an
email to [email protected]