Re: [xslt] stylesheet.errors



On Sun, Apr 27, 2003 at 09:59:14PM +0200, Stéphane Bidoul wrote:
> Hi,
> 
> I'd like to have two more accessors in the python bindings:
> stylesheet.error and stylesheet.warnings. 
> It's the only way I found to find out
> if a stylesheet compilation succeeded.

  Hum, if it fails you will get None.

> I attached a patch proposal.

  I don't really understand you suggestion, if you want a abinary
answer then (result == None) is the one. If you want to get the
error/warning messages then this should not be a Get functions but
Set functions. So can you explain a bit, I'm lost,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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