W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2009

Re: Calabash: Writing to input ports - "Attempt to create two writers for the same input"

From: Frank Scholten <franks@jteam.nl>
Date: Fri, 16 Oct 2009 12:50:32 +0200
Message-ID: <c74cff840910160350t4f4a3936kb99e090a561b435e@mail.gmail.com>
To: xproc-dev@w3.org
I solved this problem already, I used the writeTo(String port, XdmNode node)
and readFrom(String port) methods on the XPipeline.

XPipeline xPipeline = xProcRuntime.load(xplFilePath);
XdmNode inputXml =
xPipeline.writeTo("source", inputXml);

XdmNode xdmNode = xPipeline.readFrom("result").read();


Frank Scholten
Received on Friday, 16 October 2009 10:51:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 October 2009 10:51:07 GMT