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

RE: dynamic XProc?

From: <Toman_Vojtech@emc.com>
Date: Wed, 2 Jun 2010 04:34:41 -0400
Message-ID: <997C307BEB90984EBE935699389EC41C0187AB6C@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
> -----Original Message-----
> From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On
Behalf Of
> Romain Deltour
> Sent: Tuesday, June 01, 2010 9:19 PM
> To: xproc-dev@w3.org
> Subject: Re: dynamic XProc?

> Calabash's cx:eval deal with this complexity by allowing to
> "multiplex" the several input/output ports to a single port on the
> eval step (read the doc for more details). I don't know how Calumet's
> implementation works.

For input and output documents, the emc:eval step in Calumet uses one
input port and one output port. For dynamic pipelines that have multiple
input ports, you can "multiplex" the data for the different input ports
by passing a sequence of documents with a special wrapper element that
says which input port the document should be passed to. Similarly, if
the dynamic pipeline has multiple output ports, you get a sequence of
documents where each document is wrapped in a wrapper that says which
output port the document appeared on.


  <emx:eval detailed-input="true">
    <p:input port="source">
        <emx:document> <!-- no port: use primary input port -->
        <emx:document port="second-input"> <!-- use "second-input" -->
      <p:inline> <!-- no wrapper: use primary input port -->

    <p:input port="pipeline">
        <p:declare-step version="1.0">
          <p:input port="first-input" sequence="true" primary="true"/>
          <p:input port="second-input"/>
          <p:output port="result/>


Vojtech Toman
Principal Software Engineer
EMC Corporation
Received on Wednesday, 2 June 2010 08:35:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:53 UTC