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

RE: Difficulty overriding parameter values

From: <Toman_Vojtech@emc.com>
Date: Tue, 8 Dec 2009 07:58:57 -0500
Message-ID: <997C307BEB90984EBE935699389EC41C4F2EFA@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
	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:pipe step="..." port="..."/>
	    <p:variable name="v1" select="..."/>
	    <p:variable name="v2" select="..."/>
	    ... the rest of the sub-pipeline ...
	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.
Received on Tuesday, 8 December 2009 12:59:36 UTC

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