mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-04-22 03:42:49 +03:00
* doc/libxslt-api.xml doc/libxslt-decl.txt doc/libxslt-refs.xml doc/parsedecl.py: fixup the script and rebuid the API * libxslt/extensions.h: cleanup * python/generator.py python/libxslt-python-api.xml python/libxslt.c python/libxsltclass.txt: provided accessors for a lot of the tructures involved in the transformation. Stylesheet and transformation python object don't free automatically the encapsulated object when deallocated. * python/tests/Makefile.am python/tests/basic.py python/tests/extfunc.py python/tests/pyxsltproc.py: updated the examples Daniel
201 lines
11 KiB
XML
201 lines
11 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<api name='libxslt-python'>
|
|
<files>
|
|
<file name='python'>
|
|
</file>
|
|
</files>
|
|
<symbols>
|
|
<function name='xsltApplyStylesheet' file='python'>
|
|
<info>Apply the stylesheet to the document</info>
|
|
<return type='xmlDocPtr' info="the result document or NULL in case of error"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
|
|
<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='xsltCleanup' file='python'>
|
|
<info>Cleanup all libxslt and libxml2 memory allocated</info>
|
|
<return type='void'/>
|
|
</function>
|
|
<function name='xsltXPathParserGetContext' file='python_accessor'>
|
|
<info>Get the xpathContext from an xpathParserContext</info>
|
|
<return type='xmlXPathContextPtr' info="The XPath context" field="context"/>
|
|
<arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath parser context'/>
|
|
</function>
|
|
<function name='xsltXPathGetContextDoc' file='python_accessor'>
|
|
<info>Get the doc from an xpathContext</info>
|
|
<return type='xmlDocPtr' info="The doc context" field="doc"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltXPathGetContextNode' file='python_accessor'>
|
|
<info>Get the current node from an xpathContext</info>
|
|
<return type='xmlNodePtr' info="The node context" field="node"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltXPathGetContextPosition' file='python_accessor'>
|
|
<info>Get the current node from an xpathContext</info>
|
|
<return type='int' info="The node context" field="proximityPosition"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltXPathGetContextSize' file='python_accessor'>
|
|
<info>Get the current node from an xpathContext</info>
|
|
<return type='int' info="The node context" field="contextSize"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltXPathGetFunction' file='python_accessor'>
|
|
<info>Get the current function name xpathContext</info>
|
|
<return type='const xmlChar *' info="The function name" field="function"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltXPathGetFunctionURI' file='python_accessor'>
|
|
<info>Get the current function name URI xpathContext</info>
|
|
<return type='const xmlChar *' info="The function name URI" field="functionURI"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltXPathGetTransformContext' file='python_accessor'>
|
|
<info>Get the transformation context from an xpathContext</info>
|
|
<return type='xsltTransformContextPtr' info="The node context" field="extra"/>
|
|
<arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
|
|
</function>
|
|
<function name='xsltTransformGetStyle' file='python_accessor'>
|
|
<info>Get the stylesheet from a transformation</info>
|
|
<return type='xsltStylesheetPtr' info="The stylesheet" field="style"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetCurrent' file='python_accessor'>
|
|
<info>Get the current() node of a transformation</info>
|
|
<return type='xmlNodePtr' info="The node" field="node"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetOutputDoc' file='python_accessor'>
|
|
<info>Get the output document of a transformation</info>
|
|
<return type='xmlDocPtr' info="The output doc" field="output"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetOutputURI' file='python_accessor'>
|
|
<info>Get the output URI of a transformation if known</info>
|
|
<return type='const char *' info="The output URI" field="outputFile"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetInsertNode' file='python_accessor'>
|
|
<info>Get the insertion node in the output document</info>
|
|
<return type='xmlNodePtr' info="The insertion node" field="insert"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetInstruction' file='python_accessor'>
|
|
<info>Get the instruction node in the stylesheet</info>
|
|
<return type='xmlNodePtr' info="The instruction node" field="inst"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetMode' file='python_accessor'>
|
|
<info>Get the mode of a transformation</info>
|
|
<return type='const xmlChar *' info="The mode" field="mode"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetModeURI' file='python_accessor'>
|
|
<info>Get the mode URI of a transformation</info>
|
|
<return type='const xmlChar *' info="The mode URI" field="modeURI"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetContext' file='python_accessor'>
|
|
<info>Get the XPath context of a transformation</info>
|
|
<return type='xmlXPathContextPtr' info="The XPath context" field="xpathCtxt"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformGetPrivate' file='python_accessor'>
|
|
<info>Get the private field of a transformation</info>
|
|
<return type='pythonObject *' info="The private field" field="_private"/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
</function>
|
|
<function name='xsltTransformSetPrivate' file='python_accessor'>
|
|
<info>Set the private field of a transformation</info>
|
|
<return type='void'/>
|
|
<arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
|
|
<arg name='_private' type='pythonObject *' info='The private field'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetParent' file='python_accessor'>
|
|
<info>Get the parent of a stylesheet</info>
|
|
<return type='xsltStylesheetPtr' info="The parent" field="parent"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetNext' file='python_accessor'>
|
|
<info>Get the next sibling of a stylesheet</info>
|
|
<return type='xsltStylesheetPtr' info="The next sibling" field="next"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetImports' file='python_accessor'>
|
|
<info>Get the imports of a stylesheet</info>
|
|
<return type='xsltStylesheetPtr' info="The next sibling" field="imports"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetDoc' file='python_accessor'>
|
|
<info>Get the document of a stylesheet</info>
|
|
<return type='xmlDocPtr' info="The XML document" field="doc"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetMethod' file='python_accessor'>
|
|
<info>Get the output method of a stylesheet</info>
|
|
<return type='xmlChar *' info="The output method" field="method"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetMethodURI' file='python_accessor'>
|
|
<info>Get the output method URI of a stylesheet</info>
|
|
<return type='xmlChar *' info="The output method URI" field="methodURI"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetVersion' file='python_accessor'>
|
|
<info>Get the output version of a stylesheet</info>
|
|
<return type='xmlChar *' info="The output version" field="version"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetEncoding' file='python_accessor'>
|
|
<info>Get the output encoding of a stylesheet</info>
|
|
<return type='xmlChar *' info="The output encoding" field="encoding"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetDoctypePublic' file='python_accessor'>
|
|
<info>Get the output PUBLIC of a stylesheet</info>
|
|
<return type='xmlChar *' info="The output PUBLIC" field="doctypePublic"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetDoctypeSystem' file='python_accessor'>
|
|
<info>Get the output SYSTEM of a stylesheet</info>
|
|
<return type='xmlChar *' info="The output SYSTEM" field="doctypeSystem"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetGetPrivate' file='python_accessor'>
|
|
<info>Get the private field of a stylesheet</info>
|
|
<return type='pythonObject *' info="The private field" field="_private"/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
</function>
|
|
<function name='xsltStylesheetSetPrivate' file='python_accessor'>
|
|
<info>Set the private field of a stylesheet</info>
|
|
<return type='void'/>
|
|
<arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
|
|
<arg name='_private' type='pythonObject *' info='The private field'/>
|
|
</function>
|
|
<!--
|
|
<function name='xsltRegisterXPathFunction' file='python'>
|
|
<info>Register a Python written function to the XPath interpreter</info>
|
|
<return type='int' info="1 in case of success, 0 or -1 in case of error"/>
|
|
<arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/>
|
|
<arg name='name' type='xmlChar *' info='the function name'/>
|
|
<arg name='ns_uri' type='xmlChar *' info='the namespace or NULL'/>
|
|
<arg name='f' type='pythonObject' info='the python function'/>
|
|
</function>
|
|
<function name='xsltRegisterErrorHandler' file='python'>
|
|
<info>Register a Python written function to for error reporting. The function is called back as f(ctx, error).</info>
|
|
<return type='int' info="1 in case of success, 0 or -1 in case of error"/>
|
|
<arg name='f' type='pythonObject' info='the python function'/>
|
|
<arg name='ctx' type='pythonObject' info='a context for the callback'/>
|
|
</function>
|
|
-->
|
|
</symbols>
|
|
</api>
|