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

RE: p:store and default readable ports

From: Philip Fennell <Philip.Fennell@marklogic.com>
Date: Wed, 24 Nov 2010 08:41:26 -0800
To: Tony Rogers <tony@gonk.net>, XProc Dev <xproc-dev@w3.org>
Message-ID: <D20C296D14127D4EBD176AD949D8A75A47154F33@EXCHG-BE.marklogic.com>

As I myself found out recently, the p:store step doesn't have a primary output port so that you don't have to explicitly bind the following step to it. Your subsequent step can use a p:pipe on its input source to bind it to the result of the step before the p:store.

<p:http-request name="request"/>
<p:store href="foo.xml"/>
  <p:input port="source">
    <p:pipe port="result" step="request"/>

Something like that.



From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of Tony Rogers
Sent: 24 November, 2010 4:17 PM
To: XProc Dev
Subject: p:store and default readable ports

I know that the p:store step does not have a primary output.

My general question:
            Does this mean that in a pipeline that flows in the default order (top to bottom of pipeline document), p:store cannot be used in the middle of things?

My pipeline specifics:
            I have a pipeline that does an HTTP request.  I want to store the results of that request, AND I also want to perform some further processing on those results immediately after storing them.
            The problem is that if I store them, p:store does not have a primary output, so the automatic flow of my pipeline stops.  :(

Received on Wednesday, 24 November 2010 16:41:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:07 UTC