W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2010

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

From: Norman Walsh <ndw@nwalsh.com>
Date: Mon, 06 Sep 2010 20:49:57 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m239tme5sa.fsf@nwalsh.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 7 September 2010 00:50:37 GMT