- From: Kevin Flynn <kevin@escenic.com>
- Date: Mon, 12 Jul 2010 14:32:30 +0200
- To: "xproc-dev@w3.org" <xproc-dev@w3.org>, Norman Walsh <ndw@nwalsh.com>
Hi, Setting a variable like this: <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:eb="http://xmlns.escenic.com/2009/xproc/easybook-pipes" xmlns:ebl="http://xmlns.escenic.com/2009/xproc/easybook-library" xmlns:ebd="http://xmlns.escenic.com/2009/easybook/pipeline-data" xmlns:c="http://www.w3.org/ns/xproc-step" name="run-pipe" version="1.0"> <p:input port="source"/> <p:input port="par" kind="parameter"/> <p:output port="result"> <p:pipe step="end-of-pipe" port="result"/> </p:output> <p:variable name="pipeline" select="/c:param-set/c:param[@name='pipeline']/@value"> <p:pipe step="run-pipe" port="par"/> </p:variable> .... </p:declare-step> worked in Calabash 0.9.16, but fails with: :err:XD0008:More than one document in context for parameter 'pipeline' in Calabash 0.9.21. The select statement in the p:variable element should only return one node - the source document looks like this: <c:param-set xmlns:c="http://www.w3.org/ns/xproc-step"> <c:param name="pipeline" value="ebk-fo"/> <c:param name="input-file" value="file:///home/kevin/main-ws/branches/personal/kevin/ebk/syndication-ref.ebk"/> <c:param name="output-folder" value="file:///home/kevin/main-ws/branches/personal/kevin/ebk/out"/> <c:param name="output-file-stem" value="syndication-ref"/> <c:param name="version" value="5.0-8"/> </c:param-set> My question is: has an error been introduced into Calabash, or is the new behavior correct, and I've been using a loophole that is now closed. As far as I can tell from the spec it should work, but the spec is not light reading... Thanks for your attention! Kevin Flynn Vizrt Oslo, Norway
Received on Monday, 12 July 2010 12:33:07 UTC