1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-04-23 14:45:32 +03:00

14 Commits

Author SHA1 Message Date
Nick Wellnhofer
d679f4470d functions: Fix build if libxml2 modules are disabled 2023-12-29 00:44:17 +01:00
Chun-wei Fan
983e5fc41e python/types.c: Fix building against older libxml2
The XML_IGNORE_FPTR_CAST_WARNINGS and XML_POP_WARNINGS macros were added very
recently, so define them as nothing if they aren't defined upon including the
libxml2 headers.
2022-11-21 12:40:22 +08:00
Nick Wellnhofer
5443ca169c python: Support Python 3 on Windows
Copy updated implementation of PyFileGET from libxml2.
2022-09-06 15:00:48 +02:00
Nick Wellnhofer
36bbe5ab3c Remove case labels with XPointer location types 2022-04-21 04:56:49 +02:00
Nick Wellnhofer
b3076bccdb Finish and clean up Python 3 support
- Handle Python 3 types similar to libxml2
- Copy new versions of libxml_xmlXPathDestructNsNode and
  libxml_xmlXPathObjectPtrConvert from libxml2
- Fix compiler warnings
- Fix whitespace
- Remove unneeded imports from __future__
- Remove test in extelem.py (StringIO can't be converted to FILE under
  Python 3)
- string.lower() works in both Python 2 and 3

Closes #25.
2020-11-19 17:59:37 +01:00
Suleyman Poyraz
a2db8da1ac Initial support for Python 3
Squashed merge of pull request !19.
2020-11-19 17:08:37 +01:00
Daniel Veillard
0ca0a15ffb Big space and tabs cleanup
Remove spaces followed by tabs, and space and tabs at the end of lines
2012-09-12 14:07:24 +08:00
Daniel Veillard
3c0b01fbdc patch from Rob Richards for VS 2008 fix a problem with namespace nodes
* libxslt/win32config.h: patch from Rob Richards for VS 2008
* python/types.c: fix a problem with namespace nodes coming from
  XPath nodesets.
Daniel

svn path=/trunk/; revision=1458
2008-03-13 08:39:24 +00:00
Daniel Veillard
d3eaa2f845 fix float and boolean XPath conversions try to fix Stephane Bidoul attempt
* python/types.c: fix float and boolean XPath conversions
* libxslt/xsltutils.c: try to fix Stephane Bidoul attempt
  at setting XInclude support.
Daniel
2006-07-19 19:04:52 +00:00
Daniel Veillard
1255ae2e9a Nic Ferrier found debug statement left in the XPath conversion code Daniel
* python/types.c: Nic Ferrier found debug statement left in the
  XPath conversion code
Daniel
2006-02-22 15:11:07 +00:00
William M. Brack
5814e8cf8b removed ref to libxslt.la Minor cleanup of warning errors
* breakpoint/Makefile.am: removed ref to libxslt.la
* numbers.c transform.c python/libxml_wrap.h python/types.c
  xlstproc/xsltproc.c: Minor cleanup of warning errors
2003-08-07 13:03:02 +00:00
Daniel Veillard
2f28716537 fixed bugs when passing result value tree to Python functions. Daniel
* python/types.c: fixed bugs when passing result value tree
  to Python functions.
Daniel
2002-10-20 21:21:26 +00:00
Daniel Veillard
2abd71732c applied the same kind of fixes to the Python Makefiels than to libxml2
* python/Makefile.am python/generator.py python/libxslt.c
  python/types.c python/tests/Makefile.am: applied the same kind of
  fixes to the Python Makefiels than to libxml2 ones. Updates
  and cleanups too.
Daniel
2002-03-18 15:24:51 +00:00
Daniel Veillard
0e33797b05 reactivated xsltMatchPattern() since this is really something one may want
* libxslt/pattern.[ch] doc/libxslt-api.xml doc/libxslt-refs.xml:
  reactivated xsltMatchPattern() since this is really something
  one may want to have access to in an extension function.
* Makefile.am configure.in python/Makefile.am python/generator.py
  python/libxml_wrap.h python/libxsl.py python/libxslt-python-api.xml
  python/libxslt.c python/libxslt_wrap.h python/libxsltclass.txt
  python/types.c: started working on the python bindings, borrowed
  most of the work done for libxml2, most of the generator code
  is similar. Commit at the point where this compiles cleanly and
  "import libxslt" doesn't yield any missing entry point.
Daniel
2002-02-04 18:51:53 +00:00