1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

1130 Commits

Author SHA1 Message Date
Daniel Veillard
db5529150b fixed a bug in the ISO-Latin 1 to UTF8 encoder raised by Morus Walter
* encoding.c: fixed a bug in the ISO-Latin 1 to UTF8 encoder
  raised by Morus Walter
Daniel
2002-03-21 13:27:59 +00:00
Daniel Veillard
9e537937a6 applied 2 fixups from Igor Daniel
* xmlcatalog.c include/libxml/xmlversion.h.in: applied 2 fixups
  from Igor
Daniel
2002-03-21 13:08:08 +00:00
Daniel Veillard
6fbcf42aa3 fixing #75619, related to a problem when trying to evaluate condition when
* xpath.c: fixing #75619, related to a problem when trying
  to evaluate condition when the current node set resulting
  from that sub-step evaluation is empty. Also fixes 2 potential
  problem with previous-sibling and next-siblings axis.
Daniel
2002-03-21 12:32:59 +00:00
Daniel Veillard
1840ef0827 patch from Mark Vakoc to build C14N if DocBook and HTML support is not
* c14n.c: patch from Mark Vakoc to build C14N if DocBook and
  HTML support is not configured in.
Daniel
2002-03-21 08:05:23 +00:00
Daniel Veillard
561b7f883e dohh I really didn't intended to commit this test version :-( Daniel
* HTMLparser.c error.c parser.c parserInternals.c tree.c xmlIO.c
  include/libxml/tree.h: dohh I really didn't intended to commit
  this test version :-(
Daniel
2002-03-20 21:55:57 +00:00
Daniel Veillard
e50f3b5d54 I wanted to see the real speed at the SAX interface after a little too
* testSAX.c: I wanted to see the real speed at the SAX interface
  after a little too many Ximianer started complaining about the
  parser speed.
  added a --quiet option:
  paphio:~/XML -> ls -l db100000.xml
  -rw-rw-r--    1 veillard www      20182040 Mar 20 10:30 db100000.xml
  paphio:~/XML -> time ./testSAX --quiet db100000.xml
  3200006 callbacks generated
  real	0m1.270s
  Which means 16MBytes/s and 3Mcallback/s
Daniel
2002-03-20 19:24:21 +00:00
Daniel Veillard
c62a147963 valgrind spotted another error that time when running on libxslt
* xpath.c: valgrind spotted another error that time when running
  on libxslt regression tests
Daniel
2002-03-19 18:35:12 +00:00
Daniel Veillard
4b3a84ffcf adding "make valgrind" running the full regression tests (except python
* Makefile.am: adding "make valgrind" running the full regression
  tests (except python ones) under Valgrind (using valgrind -q
  which was kindly added by the author).
* valid.c: stupid bug pinpointed by Valgrind, the regression tests
  passes cleanly now except an obcure floating point initialization
  raised in log10() in one XPath regression test ???
* tree.c: edited some comments to close #75244
Daniel
2002-03-19 14:36:46 +00:00
Daniel Veillard
28cac6b5a9 pretty insane thing, the xmlXPathFormatNumber() was not serializing 1 as
* xpath.c: pretty insane thing, the xmlXPathFormatNumber()
  was not serializing 1 as "1" if LC_ALL=sv_SE :-( and in the
  context of ScrollKeeper, made sure that if the number is
  an integer, the serialization follows the description at
  http://www.w3.org/TR/xpath#section-String-Functions
Daniel
2002-03-19 11:25:30 +00:00
Daniel Veillard
34ce8bece2 preparing 2.4.18 updated and rebuilt the web site implement the new
* configure.in: preparing 2.4.18
* doc/*: updated and rebuilt the web site
* *.c libxml.h: implement the new IN_LIBXML scheme discussed with
  the Windows and Cygwin maintainers.
* parser.c: humm, changed the way the SAX parser work when
  xmlSubstituteEntitiesDefault(1) is set, it will then
  do the entity registration and loading by itself in case the
  user provided SAX getEntity() returns NULL.
* testSAX.c: added --noent to test the behaviour.
Daniel
2002-03-18 19:37:11 +00:00
Daniel Veillard
5997aca8b8 humm, changed the way the SAX parser work when
* parser.c: humm, changed the way the SAX parser work when
  xmlSubstituteEntitiesDefault(1) is set, it will then
  do the entity registration and loading by itself in case the
  user provided SAX getEntity() returns NULL.
* testSAX.c: added --noent to test the behaviour.
Daniel
2002-03-18 18:36:20 +00:00
Daniel Veillard
b5a60eccfd Wilfried Teiken provided a hackish but working way to get context reported
* parser.c: Wilfried Teiken provided a hackish but working
  way to get context reported back on entities when parsing
  with SAX and without breaking the DOM build.
Daniel
2002-03-18 11:45:56 +00:00
Daniel Veillard
2d347fac98 applied a new patch from Aleksey Sanin updated the documentation to
* c14n.c: applied a new patch from Aleksey Sanin
* doc/site.xsl doc/xml.html doc/*.html: updated the documentation
  to reference Aleksey implementation of XML digital Signatures
Daniel
2002-03-17 10:34:11 +00:00
Daniel Veillard
38bf6f0425 small fix to avoid potential problem due to ordering of freeing data
* xpath.c: small fix to avoid potential problem due to
  ordering of freeing data
* python/Makefile.am: people were complaining about
  the generated file in python dir not being built
Daniel
2002-03-16 22:03:31 +00:00
Daniel Veillard
d2379010b1 Cleanup of the python Makefiles based on Jacob and James feedback, fixed
* libxml.spec.in python/Makefile.am python/tests/Makefile.am
  python/generator.py python/libxml.c python/types.c: Cleanup
  of the python Makefiles based on Jacob and James feedback,
  fixed the spec file accordingly, fixed the number of warning
  that passing my pedantic CFLAGS was generating. Conclusion
  is that Python includes are real crap.
Daniel
2002-03-15 22:24:56 +00:00
Daniel Veillard
e7dd2b8dc6 it was reported quite a few times that xml2-config --cflags should not
* configure,in: it was reported quite a few times that
  xml2-config --cflags should not output
  -I$includeprefix/libxml2/libxml because libxml2 header names
  clashes with existing names like list.h from C++ stl.
  Includes should be #include<libxml/xxx.h> so ...
Daniel
2002-03-15 18:44:02 +00:00
Daniel Veillard
6f293b1cde another patch from Aleksey Sanin Daniel
* c14n.c: another patch from Aleksey Sanin
Daniel
2002-03-15 09:42:33 +00:00
Daniel Veillard
5c39654822 applied patch from Aleksey Sanin fixing a problem in the canonicalization
* c14n.c: applied patch from Aleksey Sanin fixing a problem in the
  canonicalization algorithm
* doc/xml.html doc/index.html: added the C14N references on the
  index page.
Daniel
2002-03-15 07:57:50 +00:00
jacob berkman
9be6586ca9 remove LDADD and CFLAGS as this is broken usage, redundant, and gcc
2002-03-13  jacob berkman  <jacob@ximian.com>

	* python/Makefile.am: remove LDADD and CFLAGS as this is broken
	usage, redundant, and gcc specific
2002-03-14 02:15:56 +00:00
Daniel Veillard
75be013085 speedup some node selection operations, this can have a significant impact
* xpath.c: speedup some node selection operations, this can
  have a significant impact on DocBook Norm's stylesheets
* nanohttp.c: someone reported that SOCKLEN_T may not be defined
  make sure it's always the case
* debugXML.c: distinguish CDATA and comments in ls operations
Daniel
2002-03-13 10:03:35 +00:00
Daniel Veillard
61f261749f Heiko W. Rupp fixed a lot of comments to generate better API descriptions
* include/libxml/*.h: Heiko W. Rupp fixed a lot of comments
  to generate better API descriptions etc...
Daniel
2002-03-12 18:46:39 +00:00
Daniel Veillard
9ff8817e67 Fixing #74186, made sure all boolean expressions get fully parenthesized,
* c14n.c: Fixing #74186, made sure all boolean expressions
  get fully parenthesized, ran indent on the output
* configure.in HTMLtree.c SAX.c c14n.c debugXML.c tree.c xpointer.c
  include/libxml/tree.h: also #74186 related, removed the
  --with-buffers option, and all the preprocessor conditional
  sections that were resulting from it.
Daniel
2002-03-11 09:15:32 +00:00
Daniel Veillard
bb4e46d5c0 applied patch from Dodji Seketeli fixing an uninitailized variable in
* valid.c: applied patch from Dodji Seketeli fixing an
  uninitailized variable in xmlValidGetValidElements()
Daniel
2002-03-10 16:49:08 +00:00
Daniel Veillard
db1bdbaeab fixed a few comments regenerated the docs and added the C14N API fixups
* c14n.c: fixed a few comments
* doc/*.html doc/*/*.html: regenerated the docs and added
  the C14N API
* doc/api.xsl doc/gnome-xml.sgml: fixups and added IDs
Daniel
2002-03-09 14:13:11 +00:00
Daniel Veillard
fa49d87f92 fix to adapt varaiations in the bindings fixed to have the version of the
* check-xml-test-suite.py: fix to adapt varaiations in the
  bindings
* configure.in python/setup.py python/setup.py.in: fixed to
  have the version of the python scripts automatically updated
Daniel
2002-03-09 10:20:00 +00:00
Daniel Veillard
a3db2e371f fixed a bug newly introduced and pointed by Uwe Fechner in xmlCopyProp()
* tree.c: fixed a bug newly introduced and pointed by Uwe Fechner
  in xmlCopyProp()
Daniel
2002-03-08 15:46:57 +00:00
Daniel Veillard
af43f63aaa preparing 2.4.17 release updated and rebuilt the docs fixed a comment
* configure.in: preparing 2.4.17 release
* doc/*: updated and rebuilt the docs
* xpath.c: fixed a comment
* python/libxml.c: fixed a possible reentrancy problem
Daniel
2002-03-08 15:05:20 +00:00
Daniel Veillard
ef6c46f805 fixed xmlHasNsProp() bugs for defaulted from DTD attribs, added a specific
* tree.c python/tests/Makefile.am python/tests/attribs.py:
  fixed xmlHasNsProp() bugs for defaulted from DTD attribs,
  added a specific regression test
* python/generator.py: xmlHasNsProp() and xmlHasProp() shall
  not raise exceptions when failing to find the attribute.
Daniel
2002-03-07 22:21:56 +00:00
Daniel Veillard
90bc371716 owen pointed out a problem with the ftime fix, gettimeofday() was not
* configure.in xmllint.c: owen pointed out a problem with the
ftime fix, gettimeofday() was not detected by configure and
the ftime header wasn't included, dohhh
Daniel
2002-03-07 15:12:58 +00:00
Daniel Veillard
8c1ae606be trying to fix #71457 for timing precision when gettimeofday() is not
* configure.in xmllint.c: trying to fix #71457 for timing
  precision when gettimeofday() is not availble but ftime() is
Daniel
2002-03-07 11:21:00 +00:00
Daniel Veillard
f5a457a3ac Fixed #73408 missing images are now copied on install and part of the
* libxml.spec.in doc/Makefile.am: Fixed #73408 missing images
  are now copied on install and part of the -devel RPM
Daniel
2002-03-07 10:25:29 +00:00
Daniel Veillard
7b41613ff3 trying to avoid bug #72150 which was apparently caused by a gcc bug (or a
* xpath.c: trying to avoid bug #72150 which was apparently
  caused by a gcc bug (or a processor problem) as detailed
  at http://veillard.com/gcc.bug
Daniel
2002-03-07 08:36:03 +00:00
Daniel Veillard
f742d34179 fixed xmlReconciliateNs(), added a Python test/example for inter-document
* tree.c python/tests/Makefile.am python/tests/cutnpaste.py:
  fixed xmlReconciliateNs(), added a Python test/example for
  inter-document cut'n paste
* python/libxml.py: fixed node.doc on document nodes and added
  xpathEval() onto node objects
Daniel
2002-03-07 00:05:35 +00:00
Daniel Veillard
4e0e297468 fixed some htmlSetMetaEncoding() problems fixup and integrated tests for
* HTMLtree.c: fixed some htmlSetMetaEncoding() problems
* python/libxml.c python/tests/Makefile.am python/tests/serialize.py:
  fixup and integrated tests for the serialization stuff
Daniel
2002-03-06 21:39:42 +00:00
Daniel Veillard
e915b2d423 Fixed bug #72570 moved the libxml man page to section 3 Daniel
* Makefile.am libxml.3 libxml.4 libxml.spec.in: Fixed bug #72570
  moved the libxml man page to section 3
Daniel
2002-03-06 18:42:40 +00:00
Daniel Veillard
1e77438da7 fix bug #72490 added methods serialize() and saveTo() to all node
* tree.c: fix bug #72490
* python/libxml.c python/libxml.py: added methods serialize()
  and saveTo() to all node elements.
Daniel
2002-03-06 17:35:40 +00:00
Daniel Veillard
ddffd2a789 closed #73430, don't read from an input source which indicated an
* xmlIO.c: closed #73430, don't read from an input source
  which indicated an end-of-file or an error.
Daniel
2002-03-05 20:28:20 +00:00
Daniel Veillard
8d24cc1898 make sure SAX endDocument is always called as this could result in a
* parser.c: make sure SAX endDocument is always called as
  this could result in a Python memory leak otherwise (it's
  used to decrement ref-counting)
* python/generator.py python/libxml.c python/libxml.py
  python/libxml2-python-api.xml python/libxml2class.txt
  python/tests/error.py python/tests/xpath.py: implemented
  the suggestions made by Gary Benson and extended the tests
  to match it.
Daniel
2002-03-05 15:41:29 +00:00
Daniel Veillard
ba5e18a3fb applied patch fixing #73450 Daniel
* python/generator.py: applied patch fixing #73450
Daniel
2002-03-05 09:36:43 +00:00
Daniel Veillard
044fc6b747 fixing #61290 "namespace nodes have no parent" long standing divergence
* xpath.c: fixing #61290 "namespace nodes have no parent"
  long standing divergence from the XPath REC. NodeSets
  simply hold a copy of namespace nodes and those node ->next
  points to the parent (which may not be the node carrying the
  definition).
* include/libxml/xpath.h: flagged but didn't added a possible
  speedup
* DOCBparser.c HTMLparser.c: removed some warnings from push
  parser due to new state being added.
* tree.c: new fix from Boris Erdmann
* configure.in c14n.c include/libxml/c14n.h testC14N.c: added
  the XML Canonalization support from Aleksey Sanin
Daniel
2002-03-04 17:09:44 +00:00
Daniel Veillard
d4f41aacfc patch from Boris Erdmann fixing some namespace odities with xmlCopyNode()
* tree.c: patch from Boris Erdmann fixing some namespace odities
  with xmlCopyNode()
Daniel
2002-03-03 14:13:46 +00:00
Daniel Veillard
c6613048af fix bug #72706 when loading a NULL entity Daniel
* xmlIO.c: fix bug #72706 when loading a NULL entity
Daniel
2002-03-02 09:34:02 +00:00
Daniel Veillard
c0fef77455 Fixed #72346, about handling of xmlns:foo="", this could actually change
* SAX.c: Fixed #72346, about handling of xmlns:foo="", this could
  actually change in a future XML Namespace revision.
Daniel
2002-03-01 16:16:31 +00:00
Daniel Veillard
79426f2b46 added the possibility of returning nodesets from XPath extension functions
* python/types.c python/tests/Makefile.am python/tests/xpathret.py:
  added the possibility of returning nodesets from XPath extension
  functions written in Python
Daniel
2002-03-01 16:14:17 +00:00
Daniel Veillard
a94ec6ff13 commiting some Python bindings work done while travelling Daniel
* python/*: commiting some Python bindings work done while travelling
Daniel
2002-03-01 13:00:53 +00:00
Daniel Veillard
9730051f83 close #72663 and #72658, don't memdump unless compiled explicitely with
* xmllint.c: close #72663 and #72658, don't memdump unless compiled
  explicitely with memory debugging switched on
Daniel
2002-03-01 09:13:41 +00:00
Daniel Veillard
6361da0c25 Added wrapper for the xmlURIPtr type, provided accessors, fixed the
* python/generator.py python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt python/libxml_wrap.h python/types.c:
  Added wrapper for the xmlURIPtr type, provided accessors, fixed
  the accessor generator for strings
* python/tests/Makefile.am python/tests/tstURI.py: added a specific
  regression test.
Daniel
2002-02-23 10:10:33 +00:00
Daniel Veillard
0fea6f45cd added the 'usual' setup.py to allow building a libxml2-python module based
* python/README python/generator.py python/libxml.c python/setup.py:
  added the 'usual' setup.py to allow building a libxml2-python
  module based on the same code. The initialization is however
  different the 2 .so files fo libxml2 and libxslt are identical and
  they entry point initialize both libraries. this is done to avoid
  some possible nasty problem since the Python don't merge the maps
  of all shared modules.
Daniel
2002-02-22 22:51:13 +00:00
Daniel Veillard
158a4d2767 fixed a push/encoding bug reported by Michael on librsvg Daniel
* parser.c: fixed a push/encoding bug reported by Michael
  on librsvg
Daniel
2002-02-20 22:17:58 +00:00
Daniel Veillard
7839e16128 fixes a misplaced #endif Daniel
* include/libxml/parserInternals.h: fixes a misplaced #endif
Daniel
2002-02-20 18:54:48 +00:00