W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > June 2008

RE: Standard error codes - QNames or not?

From: <Toman_Vojtech@emc.com>
Date: Thu, 12 Jun 2008 07:12:58 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870B642F47@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-wg@w3.org>
No, it was about the errors from the xproc-error namespace in general.
 
Vojtech



________________________________

	From: Innovimax SARL [mailto:innovimax@gmail.com] 
	Sent: Thursday, June 12, 2008 12:49 PM
	To: Toman, Vojtech
	Cc: public-xml-processing-model-wg@w3.org
	Subject: Re: Standard error codes - QNames or not?
	
	
	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 11:14:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 June 2008 11:14:30 GMT