[lxml-dev] [xml] Catching error messages in schematron

Stefan Behnel stefan_ml at behnel.de
Thu Aug 2 13:52:05 CEST 2007


Hi Daniel,

Daniel Veillard wrote:
> On Thu, Jul 19, 2007 at 08:03:24PM +0200, Stefan Behnel wrote:
>> currently (as of libxml2 2.6.29), the schematron implementation writes
>> validation error messages to stderr with a plain fprintf in
>> xmlSchematronReportOutput (happily annotated with a "TODO").
>>
>> However, to make schematron usable in lxml, I need a way to propagate these
>> errors to the Python level. I would therefore like to see them passed into
>> __xmlRaiseError().
> 
>   The schematron code is really not complete, that sure could be fixed
> but a lot more may be needed. I asked for a definitive set of test for
> the ISO version and never got an answer, so I got discouraged and dropped
> working on it at the time. Of course now I have far less time for libxml2

Ah, that's too bad. Can you comment on how complete you consider the current
Schematron implementation?

Stefan


More information about the lxml-dev mailing list