RE: Difficulty overriding parameter values

	I was just investigating without luck if using a p:group I could
wrap say 5 variables and specify only once which port the following
statements are using?  (had a pascal "with" statement on my mind)  Is is
possible to do something that in xproc? 
	 
	It is possible. You can do it, for example, by wrapping the
variables (and the rest of the pipeline) in a p:group and "redirecting"
the default readable port using p:identity:
	 
	<p:declare-step>
	  ...
	  <p:identity>
	    <p:pipe step="..." port="..."/>
	  </p:identity>
	  <p:group> 
	    <p:variable name="v1" select="..."/>
	
	    <p:variable name="v2" select="..."/>
	    ... the rest of the sub-pipeline ...
	     </p:group>
	 </p:declare-step> 
	 
	It is not always a nice solution, but I guess you can see the
pattern. The thing with p:variable is that it must always come before
any steps in the pipeline, so wrapping it in some compound step is often
the only way to get more control over what you can connect it to.
	 
	Regards,
	Vojtech 

Received on Tuesday, 8 December 2009 12:59:36 UTC