W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2009

RE: Difficulty overriding parameter values

From: <Toman_Vojtech@emc.com>
Date: Fri, 3 Jul 2009 02:16:53 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7871014892E@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
Hi Kevin,
p:with-param should work. But it looks to me that you wan to use it in
the step *declaration*, not in the step *invocation* (because of the
kind="parameter" attributes on p:input)?
If you do something like this in your pipeline:
  <p:input port="parameters">
    <p:pipe step="..." port="..."/>
  <p:with-param name="parent" select="'book'">
It should work. Note that you can omit the p:pipe binding for the
parameter input port if the main pipeline has a primary parameter input


	From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org]
On Behalf Of Kevin Flynn
	Sent: Friday, July 03, 2009 8:03 AM
	To: xproc-dev@w3.org
	Subject: Difficulty overriding parameter values
	In one of my pipelines, I want to override a parameter called
"parent"  with a computed value, but can't seem to get it to work. I can
override as follows:
	 <p:input port="parameters" kind="parameter">
	   <c:param value="parent" value="book"/>
	but then I can't set "value" using an Xpath expression. This, on
the other hand simply doesn't work:
	  <p:input port="parameters" kind="parameter"/>
	  <p:with-param name="parent" select="'book'"/>
	According to the following example in the xproc spec, the above
should work, I believe:
	Am I misunderstanding something? I think I may be. I also think
that in the text following the above example, the words "before" and
"after" may have got swapped: the text doesn't seem to match the
	I am using calabash 0.9.10. eb:rng-ebk is a compound step that
runs a chain of transformations, one of which takes "parent" as a
	Kevin Flynn
Received on Friday, 3 July 2009 06:18:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:48 UTC