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

calabash with primary attributes

From: James Fuller <james.fuller.2007@gmail.com>
Date: Sun, 29 Mar 2009 13:51:49 +0200
Message-ID: <a0ad8ffe0903290451n1359f81fnf6380c8d1aac2826@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
consider this trivial pipeline

<p:declare-step xmlns:foo="http://acme.com/test"
                xmlns:p="http://www.w3.org/ns/xproc">

      <p:input port="source"/>
      <p:output port="result"/>
      <p:input port="extra" primary="false"/>

      <p:identity/>

</p:declare-step>

as I understand things the source and result should be marked primary
automatically

calabash throws a

'Error  : file:/xprocxq/main/test/xproc/basic/declare-step/declare-step1_9.xml:8:
Input source unbound on p:identity step named #ANON.86 and no default
binding available.
Error  : Pipeline failed: err:XS0032: Input source unbound on
p:identity step named #ANON.86 and no default binding available.  It
is a static error if no binding is provided and the default readable
port is undefined.'

if I add primary attribute to source e.g.

<p:declare-step xmlns:foo="http://acme.com/test"
                xmlns:p="http://www.w3.org/ns/xproc">

      <p:input port="source" primary="true"/>
      <p:output port="result"/>
      <p:input port="extra" primary="false"/>

      <p:identity/>

</p:declare-step>

it works properly.

cheers, Jim Fuller

ps: I made a test case for this in the test suite
Received on Sunday, 29 March 2009 11:52:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 29 March 2009 11:52:29 GMT