From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sat Sep 16 2000 - 08:52:00 EDT
On Fri, Sep 15, 2000 at 11:36:18PM -0400, Havoc Pennington wrote:
>
>
> Hi,
>
> I'm wondering why the parser usually sets the errno in the parse
> context _after_ calling the sax->error handler, for example:
Answer: doohh ...
> So in your error handler, you can't know the errno. It would seem just
> as easy to set the errno before calling the handler, then the handler
> could know which error occurred.
>
> Also it's pretty problematic that error messages are not
> localized; this makes them useless for showing to users, since many
> users don't speak English.
>
> Any thoughts on these issues?
Mementary lapse of reason ....
Of course one of the reason why ctxt->errno is set is to be able
to localize or apply appropriate action in the error handler (or at
the end of parsing). I will fix this today :-)
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Sat Sep 16 2000 - 09:43:11 EDT