mirror of
				https://gitlab.gnome.org/GNOME/libxslt
				synced 2025-10-30 14:45:36 +03:00 
			
		
		
		
	* python/generator.py python/libxslt-python-api.xml python/libxslt.c python/libxslt_wrap.h python/libxsltclass.txt: patch from Sean Treadway, adding Python bindings for extension element and some bindings cleanups. * python/tests/Makefile.am python/tests/extelem.py: also add an example/test. Daniel
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "libxml_wrap.h"
 | |
| #include <libxslt/xslt.h>
 | |
| #include <libxslt/xsltInternals.h>
 | |
| #include <libxslt/xsltutils.h>
 | |
| #include <libxslt/attributes.h>
 | |
| #include <libxslt/documents.h>
 | |
| #include <libxslt/extensions.h>
 | |
| #include <libxslt/extra.h>
 | |
| #include <libxslt/functions.h>
 | |
| #include <libxslt/imports.h>
 | |
| #include <libxslt/keys.h>
 | |
| #include <libxslt/namespaces.h>
 | |
| #include <libxslt/numbersInternals.h>
 | |
| #include <libxslt/pattern.h>
 | |
| #include <libxslt/preproc.h>
 | |
| #include <libxslt/templates.h>
 | |
| #include <libxslt/transform.h>
 | |
| #include <libxslt/variables.h>
 | |
| #include <libxslt/xsltconfig.h>
 | |
| 
 | |
| #define Pystylesheet_Get(v) (((v) == Py_None) ? NULL : \
 | |
|         (((Pystylesheet_Object *)(v))->obj))
 | |
| 
 | |
| typedef struct {
 | |
|     PyObject_HEAD
 | |
|     xsltStylesheetPtr obj;
 | |
| } Pystylesheet_Object;
 | |
| 
 | |
| #define PytransformCtxt_Get(v) (((v) == Py_None) ? NULL : \
 | |
|         (((PytransformCtxt_Object *)(v))->obj))
 | |
| 
 | |
| typedef struct {
 | |
|     PyObject_HEAD
 | |
|     xsltTransformContextPtr obj;
 | |
| } PytransformCtxt_Object;
 | |
| 
 | |
| #define PycompiledStyle_Get(v) (((v) == Py_None) ? NULL : \
 | |
|         (((PycompiledStyle_Object *)(v))->obj))
 | |
| 
 | |
| typedef struct {
 | |
|     PyObject_HEAD
 | |
|     xsltTransformContextPtr obj;
 | |
| } PycompiledStyle_Object;
 | |
| 
 | |
| 
 | |
| PyObject * libxslt_xsltStylesheetPtrWrap(xsltStylesheetPtr ctxt);
 | |
| PyObject * libxslt_xsltTransformContextPtrWrap(xsltTransformContextPtr ctxt);
 | |
| PyObject * libxslt_xsltStylePreCompPtrWrap(xsltStylePreCompPtr comp);
 | |
| PyObject * libxslt_xsltElemPreCompPtrWrap(xsltElemPreCompPtr comp);
 |