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

Re: p:xquery with multiple input documents

From: Conal Tuohy <conal.tuohy@gmail.com>
Date: Mon, 5 Sep 2016 22:15:03 +1000
Message-ID: <CAErBQuSG3dtDVRnLBSZPnjhpFJ3Lyj5rqVtBLz4s6rCksNtmyA@mail.gmail.com>
To: Sebastian Fey <fey@ambihome.com>
Cc: XProc Dev <xproc-dev@w3.org>
Hi Sebastian!

You can have a sequence of input documents, NB the "sequence='true'" in the
definition:

 <p:input port="source" sequence="true" primary="true"/>


e.g.

<p:input port="source">
   <p:pipe step="first-document" port="result"/>
   <p:pipe step="second-document" port="result"/>
   <!-- etc -->
</p:input>

Only one set of parameters, though, yes.


Conal

On 3 September 2016 at 19:21, Sebastian Fey <fey@ambihome.com> wrote:

> According to https://www.w3.org/TR/xproc/#c.xquery p:xquery gets only one
> input document and parameters (which can only be atomic, right?)
>
> If my query has multiple input documents (from previous steps), do I
> really have to store them first and load them inside the query?
>



-- 
Conal Tuohy
http://conaltuohy.com/
@conal_tuohy
+61-466-324297
Received on Monday, 5 September 2016 12:22:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 5 September 2016 12:22:29 UTC