binding primary output in a declare-step

Related to today's earlier discussion, is it a bug that I can't use
p:output to bind a primary port, or am I not understanding something?
For example, why does

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  <p:input port="source" primary='true'>
    <p:document href="test.xml"/>
  </p:input>
  <p:output port="res" sequence="true" >
    <p:pipe step="ident" port="result" />
  </p:output>
  <p:identity name="ident" />
</p:declare-step>

work, while

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  <p:input port="source" primary='true'>
    <p:document href="test.xml"/>
  </p:input>
  <p:output port="res" sequence="true" primary="true">
    <p:pipe step="ident" port="result" />
  </p:output>
  <p:identity name="ident" />
</p:declare-step>

does not?  I think the two pipelines should be equivalent, if I
understand things properly.

Thanks,

-James

Received on Sunday, 7 December 2008 21:29:57 UTC