Re: [xml] Catching error messages in schematron



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



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