Re: XProc questions from my students

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 UTC