- From: mozer <xmlizer@gmail.com>
- Date: Sat, 13 Sep 2008 16:47:31 +0200
- To: "James Garriss" <james@garriss.org>
- Cc: "xproc-dev@w3.org" <xproc-dev@w3.org>
- Message-ID: <21d9ade60809130747k4e647f2fuac733757552f52bc@mail.gmail.com>
Indeed (so the last answer by email was wrong)
This is due to the fact that p:compare has NO primary output
So you need to explicitly bind it
So this one should work (at least I hope)
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main">
<p:input port="source" primary="true">
<p:document href="Bookstore.xml"/>
</p:input>
<p:input port="alternate">
<p:document href="BookStoreDupe.xml"/>
</p:input>
<p:output port="result">
<p:pipe step="compare" port="result" />
</p:output>
<p:compare fail-if-not-equal="true" name="compare">
<p:input port="source">
<p:pipe step="main" port="source"/>
</p:input>
<p:input port="alternate">
<p:pipe step="main" port="alternate"/>
</p:input>
</p:compare>
</p:declare-step>
Xmlizer
On Sat, Sep 13, 2008 at 4:16 PM, James Garriss <james@garriss.org> wrote:
> using: calabash 0.6.0
>
> Several steps, including p:compare, wrap their results in a c:result
> document. How do I access that? It doesn't seem to automatically pop out
> on the default result port. And I can't find any mention of how to access
> it in the spec.
>
> Appreciate any pointers!
>
> James Garriss
> http://garriss.blogspot.com
>
> PS: here's my pipeline:
>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main">
> <p:input port="source" primary="true">
> <p:document href="Bookstore.xml"/>
> </p:input>
> <p:input port="alternate">
> <p:document href="BookStoreDupe.xml"/>
> </p:input>
> <p:input port="|result"/>
> <p:output port="result"/>
> <p:compare fail-if-not-equal="true">
> <p:input port="source">
> <p:pipe step="main" port="source"/>
> </p:input>
> <p:input port="alternate">
> <p:pipe step="main" port="alternate"/>
> </p:input>
> </p:compare>
> </p:declare-step>
>
Received on Saturday, 13 September 2008 14:48:05 UTC