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:
 
...
<eb:rng-ebk>
  <p:input port="parameters">
    <p:pipe step="..." port="..."/>
  <p:input>
  <p:with-param name="parent" select="'book'">
    <p:empty/>
  </p:with-param>
</eb:rng-ebk>
...
 
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
port.
 
Regards,
Vojtech
 


________________________________

	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:
	
	<eb:rng-ebk>
	 <p:input port="parameters" kind="parameter">
	  <p:inline>
	   <c:param value="parent" value="book"/>
	  </p:inline>
	 </p:input>
	</eb:rng-ebk>
	
	but then I can't set "value" using an Xpath expression. This, on
the other hand simply doesn't work:
	
	<eb:rng-ebk>
	  <p:input port="parameters" kind="parameter"/>
	  <p:with-param name="parent" select="'book'"/>
	</eb:rng-ebk>
	
	According to the following example in the xproc spec, the above
should work, I believe:
	
	http://www.w3.org/TR/xproc/#ex.parameter
	
	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
example.
	
	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
parameter.
	
	Regards,
	
	Kevin Flynn
	
Received on Friday, 3 July 2009 06:18:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 3 July 2009 06:18:42 GMT