- From: mozer <xmlizer@gmail.com>
- Date: Sat, 13 Sep 2008 16:44:10 +0200
- To: "James Garriss" <james@garriss.org>
- Cc: xproc-dev@w3.org
- Message-ID: <21d9ade60809130744g6fb18123m93399beae4c205f9@mail.gmail.com>
James, First |result is NOT a NCName Second, you don't have to declare input and output at the same time as output So the following pipe should make the trick <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: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> Xmlizer On Sat, Sep 13, 2008 at 3:51 PM, James Garriss <james@garriss.org> wrote: > using: Calabash 0.6.0 > > When I use a pipeline with a p:compare step, Calabash gives this error: > Input |result unbound on pipeline step named main and no default binding > available. > > I can make the error go away by inserting this: > > <p:input port="|result"/> > > But when I look at the spec ( > http://www.w3.org/TR/2008/WD-xproc-20080814/#c.compare), I don't see this > port mentioned. > > What am I missing? > > TIA > > 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:44:47 UTC