- From: Norman Walsh <ndw@nwalsh.com>
- Date: Mon, 29 Jun 2009 08:23:41 -0400
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <m2zlbrw7n6.fsf@nwalsh.com>
"Costello, Roger L." <costello@mitre.org> writes: > Hi Folks, > > The specification says that p:parameters has an input port, parameters, which is not primary. So, it shouldn't automatically connect to its prior step. Thus, this pipeline should fail, but it doesn't: > > <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" > xmlns:c="http://www.w3.org/ns/xproc-step" > name="myPipeline"> > > <p:input port="parameters" kind="parameter"> > <p:inline> > <c:param name="Title" value="First and Last Freedom" /> > </p:inline> > </p:input> > > <p:output port="result" sequence="true"> > <p:pipe step="params" port="result" /> > </p:output> > > <p:parameters name="params" /> > > </p:declare-step> > > Do you agree that it should fail? Actually, according to 5.1.2, it shouldn't fail, it should simply be bound to an empty sequence: If no binding is provided for a parameter input port other than the primary parameter input port, then the port will be bound to an empty sequence of documents. Fixed in subversion for Calabash v.next. Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | Weeks of programming can save you hours http://nwalsh.com/ | of planning.
Received on Monday, 29 June 2009 12:24:29 UTC