- From: Norman Walsh <ndw@nwalsh.com>
- Date: Sun, 14 Jun 2009 17:21:19 -0400
- To: XProc Dev <xproc-dev@w3.org>
Received on Sunday, 14 June 2009 21:21:58 UTC
"Costello, Roger L." <costello@mitre.org> writes:
> Does XProc support event-driven processing?
>
> Here's an example to illustrate what I mean:
>
> Hey, any time during the pipeline processing,
> if the value of <Purchase_Quantity> changes,
> fire a step to update <Total_Cost>.
>
> Can you think of a way to express this in XProc?
Not in the way you describe. There aren't "conditional events" "off to
the side" like that.
I'd express that as a near-identity-step that did nothing but update
the <Total_Cost>. I'd put that step after any step that might change
the quantity.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Nothing is really work unless you would
http://nwalsh.com/ | rather be doing something else.--James
| M. Barrie
Received on Sunday, 14 June 2009 21:21:58 UTC