Re: [xml] enhancing the error handling API



Aleksey Sanin wrote:
Daniel Veillard wrote:

 This would require also adding:
   - registering function both globally and for parsing/validation/xslt
     contexts. This means global or thread specific new variables.

No thread specific variables! Only global ones, this is the point.
You create a global callback which application can replace and
after that, the application will be responsible for handling
threads, etc.

So what happens if you are a library writer? The library installs its own libxml callbacks and it has no idea that the app might do the same - and vice versa. even another library might want to do so. requiring only one user would not be nice. if these are per-thread you can work around the problem.


Aleksey



__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]