- From: Tobias Vogt <tobias_vogt_@web.de>
- Date: Tue, 31 Mar 2009 22:06:44 +0200
- To: xproc-dev@w3.org
- Message-ID: <49D277D4.4050906@web.de>
Norman Walsh wrote:
> Norman Walsh <ndw@nwalsh.com> writes:
>
>
>> Tobias Vogt <tobias_vogt_@web.de> writes:
>>
>>> Since the single input port of step type t:identity is marked primary
>>> false, I think the processor should not have connected it and should
>>> have returned an error instead. Can someone confirm my assumption?
>>>
>> That's right.
>>
>
> Fixed in 0.9.7, released today.
>
> Be seeing you,
> norm
>
>
Norman,
thanks for the quick fix. My initial pipeline will now report the
expected error. Still, I get the impression, the problem is not
completely solved. In the following pipeline, I have slightly altered my
initial example by adding an inline document to p:input on "iden-step"
and connecting it to the p:input of "iden":
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:t="test"
name="pipeline">
<p:input port="source">
<p:inline>
<inline-doc/>
</p:inline>
</p:input>
<p:output port="result"/>
<p:declare-step type="t:identity" name="iden-step">
<p:input port="source-port" primary="false">
<!-- new p:inline added -->
<p:inline>
<inline-in-iden-step/>
</p:inline>
</p:input>
<p:output port="result-port"/>
<p:identity name="iden">
<!-- new p:input added -->
<p:input port="source">
<p:pipe port="source-port" step="iden-step"/>
</p:input>
</p:identity>
</p:declare-step>
<t:identity/>
</p:declare-step>
Once again, the output is:
<inline-doc xmlns:t="test"/>
while I would have expected:
<inline-in-iden-step/>
So again it seems to me the "source" port of the inner "iden" step is
connected to the (primary) input of "pipeline", when it should be
connected to "source-port" on "iden-step".
Tobias
Received on Tuesday, 31 March 2009 20:07:20 UTC