Re: [xml] Patch for the RelaxNG error callbacks from Python



On Mon, Jul 21, 2003 at 12:52:14PM +0200, Joachim Bauch wrote:
Hi Daniel,

  Hi Joachim,

 sorry it took so long, I was travelling and lost track of the issue.

here is the patch to support setting the error callbacks of the RelaxNG validation
contexts from Python code.

  Hum, there is a couple of problems with your patch:
    - first please generate contextual patches, usually that can be done
      by using the switch -c or -p to the diff tool
    - second there seems to be some confusion. You redefine the function
      libxml_xmlRelaxNGFreeValidCtxt while it is part of the generated 
      set present in libxml2-py.c with a completely different semantic.

Currently, I'm trying to modify the generator to output the correct functions
to libxml2.py but without luck. Where must I include some text, so the Python
class "relaxNgValidCtxt" gets a new method "relaxNGSetSetValidErrors"?

  Automatically generated interfaces for custom binding code requires
modifying libxml2-python-api.xml with an XML description of the interface.
Hopefully you can get the semantic of the description by looking at the
example from other functions, this is not documented yet...

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]