Vojtech, err:XD0003 is a *dynamic* error, so it is allowed I thought you were speaking of *static* error Mohamed On Thu, Jun 12, 2008 at 9:02 AM, <Toman_Vojtech@emc.com> wrote: > > > -----Original Message----- > > From: public-xml-processing-model-wg-request@w3.org > > [mailto:public-xml-processing-model-wg-request@w3.org] On > > Behalf Of Norman Walsh > > Sent: Tuesday, June 10, 2008 11:48 PM > > To: public-xml-processing-model-wg@w3.org > > Subject: Re: Standard error codes - QNames or not? > > > > > > | Related to this, can p:error be used for generating standard XProc > > | errors (such as err:XS0001)? > > > > I'm of two minds. I could see forbidding them on principle, on the > > other hand, I don't see a lot of danger allowing them. > > > > If we allow it, it would make it possible to "rethrow" the standard > errors in the catch block, for instance, which may be a useful feature: > > <p:try> > <p:group> > ... > </p:group> > <p:catch> > <p:choose> > <p:when test="... check for err:XD0003 ..."> > <!-- rethrow err:XD0003 --> > <p:error code="err:XD0003"> > ... > </p:error> > </p:when> > <p:otherwise> > <!-- do something else --> > </p:otherwise> > </p:choose> > </p:catch> > </p:try> > > > Regards > Vojtech > > -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 9 52 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €Received on Thursday, 12 June 2008 10:49:24 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 June 2008 10:49:25 GMT