Re: Calabash: set a sequence to a port in Java

Florent Georges <fgeorges@fgeorges.org> writes:
>   If I am right, the way to set a Saxon's XDM value to a port in
> Calabash is by calling XPipeline.writeTo().  But it accepts an
> XdmNode, which means only one node, no sequence.  Is there a way
> to set a sequence of nodes to a port, in case the port is defined
> with sequence="true"?

I believe you can write more than one node, but I'm saying that
without looking at the code :-)

>   And what's the idiomatic way to pass a text or binary value
> (originally an xs:string, xs:hexBinary or xs:base64Binary)?  To
> encapsulate it in a c:data?  Do we have to do that in Java, or is
> it a way to let Calabash handle the details?

You must encapsulate it in a c:data yourself, in Java.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
www.marklogic.com

Received on Tuesday, 7 September 2010 00:50:36 UTC