1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-06-15 10:41:43 +03:00

plugged the extension of the engine with python defined functions added a

* python/libxlst.c python/libxslt-python-api.xml
  python/libxsltclass.txt: plugged the extension of the engine
  with python defined functions
* python/tests/Makefile.am python/tests/extfunc.py: added a
  basic test, still a memleak, cleanup function needed.
Daniel
This commit is contained in:
Daniel Veillard
2002-02-06 18:48:48 +00:00
parent 584f279f53
commit 09af30e51e
6 changed files with 163 additions and 2 deletions

View File

@ -12,6 +12,13 @@
<arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
<arg name='params' type='pythonObject' info='the parameters dictionnary'/>
</function>
<function name='xsltRegisterExtModuleFunction' file='python'>
<info>Register a Python written function to the XSLT engine</info>
<return type='int' info="0 in case of success, -1 in case of error"/>
<arg name='name' type='xmlChar *' info='the function name'/>
<arg name='URI' type='xmlChar *' info='the namespace or NULL'/>
<arg name='f' type='pythonObject' info='the python function'/>
</function>
<!--
<function name='xsltRegisterXPathFunction' file='python'>
<info>Register a Python written function to the XPath interpreter</info>