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

compound steps and primary inputs

From: James Garriss <james@garriss.org>
Date: Tue, 23 Sep 2008 15:06:26 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <C4FEB672.9B2%james@garriss.org>
Do all compound steps have primary inputs?  I ask because I can't tell by
reading the WD if p:for-each has a primary input or not.  I'm probably
missing a key word somewhere.

When I use it in Calabash 0.6.1, it behaves as if it does:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
    <p:input port="source">
        <p:document href="BookStore.xml"/>
    </p:input>
    <p:output port="result"/>
    <p:filter select="/BookStore/Book[Date>'1970']"/>
    <p:for-each>
        <p:output port="result"/>
        <p:identity/>
    </p:for-each>
</p:declare-step>

The output of filter, a sequence of documents (<Book>...</Book>), is being
inputted (is that a word?) into p:for-each.

Appreciate any insights!

James Garriss
http://garriss.blogspot.com
Received on Tuesday, 23 September 2008 19:07:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 September 2008 19:07:10 GMT