- From: James Fuller <james.fuller.2007@gmail.com>
- Date: Fri, 31 Oct 2008 22:16:10 +0100
- To: "Norman Walsh" <ndw@nwalsh.com>
- Cc: "XProc Dev" <xproc-dev@w3.org>
ah too many layers of abstraction..... my bash test run wrapper was trying to force feed something to a non existent port named source e.g. java com.xmlcalabash.drivers.Main -isource=$1 $2 nothing wrong then... I was confused by the error message because I was reading it that the xproc processor was expecting a port named source ;) Error : Pipeline failed: com.xmlcalabash.core.XProcException: Binding for 'source' which doesn't exist. com.xmlcalabash.core.XProcException: Binding for 'source' which doesn't exist. at com.xmlcalabash.drivers.Main.run(Main.java:239) at com.xmlcalabash.drivers.Main.main(Main.java:69) apologies for the false positive. cheers ,Jim On Fri, Oct 31, 2008 at 9:32 PM, Norman Walsh <ndw@nwalsh.com> wrote: > "James Fuller" <james.fuller.2007@gmail.com> writes: > >> given >> >> <p:declare-step name="test1" >> xmlns:p="http://www.w3.org/ns/xproc"> >> >> <p:input port="primary-source" primary="true"/> >> <p:output port="primary-result" primary="true"/> >> >> <p:count/> >> >> </p:declare-step> >> >> I thought declaring primary-source explicitly as primary (with >> @primary attr) should result in this being treated as the default >> readable input. >> >> is this a calabash bug or a misunderstanding of the spec on my part ? > > It works for me, so I dunno :-) > > $ calabash -iprimary-source=test1.xpl test1.xpl > <c:result xmlns:c="http://www.w3.org/ns/xproc-step">1</c:result> > > Be seeing you, > norm > > -- > Norman Walsh <ndw@nwalsh.com> | We look back on our life as a thing of > http://nwalsh.com/ | broken pieces, because our mistakes and > | failures are always the first to strike > | us, and outweigh in our imagination > | what we have accomplished and > | attained.-- Goethe >
Received on Friday, 31 October 2008 21:16:45 UTC