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

Re: XProc questions from my students

From: Florent Georges <fgeorges@fgeorges.org>
Date: Wed, 20 May 2009 12:04:31 +0200
Message-ID: <ebaca5bf0905200304k64d26d6bmf21dd10fc1f7263d@mail.gmail.com>
To: mozer <xmlizer@gmail.com>
Cc: "Costello, Roger L." <costello@mitre.org>, "xproc-dev@w3.org" <xproc-dev@w3.org>
2009/5/20 mozer wrote:

> It looks like you have to build it yourself

> Probably with a try/catch
> p:try {
>  p:group {
>     ... do your atomic stuff ...
>     p:choose {
>        p:when ($status = ok) {
>          ... that's fine ...
>        } p:otherwise {
>         ... do rollback ...
>        }
>     }
>  }
>  p:catch {
>    ... in case of error do rollback ...
>  }
> }

  Yes, but the interesting parts are "... do rollback ..." and "... in
case of error do rollback ..." ;-)

-- 
Florent Georges
http://www.fgeorges.org/
Received on Wednesday, 20 May 2009 10:05:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 20 May 2009 10:05:18 GMT