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

Re: Does XProc support event-driven processing?

From: Norman Walsh <ndw@nwalsh.com>
Date: Sun, 14 Jun 2009 17:21:19 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m27hzefr5c.fsf@nwalsh.com>
"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,

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:05 UTC