1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 04:55:04 +03:00
Commit Graph

93 Commits

Author SHA1 Message Date
Daniel Veillard
9e7160d45a Completely changed the way the XPath evaluation is done, likely to break
stuff like libxslt right now:
- Makefile.am: detect XPath memleaks in regreson tests
- error.c: fixed and error w.r.t. error reporting still using
  stderr
- hash.c: added new line at end of file
- tree.h: minor cleanup
- xpath.[ch] xpointer.[ch]: Major changes ! Separated XPath
  expression parsing from evaluation, resulted in a number of
  changes internally, and in XPointer. Likely to break stuff
  using xpathInternals.h but should remain binary compatible,
  new interfaces will be added.
Daniel
2001-03-18 23:17:47 +00:00
Daniel Veillard
6c831207f8 Seems there is still bugs hiding, someone has some flytox ?
- Makefile.am: Martin Baulig suggested to add -lm
- tree.c: found another bug in xmlNodeGetContent()
Daniel
2001-03-07 15:57:53 +00:00
Bjorn Reese
e1dc0114ac xmlXPathNodeCollectAndTest fixed (by William Brack)
xmlXPathFormatNumber added
xmlXPathNodeSetSort changed
2001-03-03 12:09:03 +00:00
Owen Taylor
3473f88a7a Revert directory structure changes 2001-02-23 17:55:21 +00:00
CET 2001 Tomasz Koczko
64636e7f6e moved to libxml directory - this allow simplify automake/autoconf. Now
Thu Feb 23 02:03:56 CET 2001 Tomasz Koczko <kloczek@pld.org.pl>

        * *.c *.h libxml files: moved to libxml directory - this allow
	  simplify automake/autoconf. Now isn't neccessary hack on
	  am/ac level for make and remove libxml symlink (modified for this
	  also configure.in and main Makefile.am). Now automake abilities
	  are used in best way (like in many other projects with libraries).
	* include/win32config.h: moved to libxml directory (now include
	  directory isn't neccessary).
	* Makefile.am, examples/Makefile.am, libxml/Makefile.am:
	  added empty DEFS and in INCLUDES rest only -I$(top_builddir) -
	  this allow minimize parameters count passed to libtool script
	  (now compilation is also slyghtly more quiet).
	* configure.in: simplifies libzdetestion - prepare separated
	  variables for keep libz name and path to libz header files isn't
	  realy neccessary (if someone have libz installed in non standard
	  prefix path to header files ald library can be passed as:
	  $ CFALGS="-I</libz.h/path>" LDFLAGS="-L</libz/path>" ./configure
	* autogen.sh: check now for libxml/entities.h.

	After above building libxml pass correctly and also pass
	"make install DESTDIR=</install/prefix>" from tar ball generated by
	"make dist". Seems ac/am reorganization is finished. This changes
	not touches any other things on *.{c,h} files level.
2001-02-23 01:37:32 +00:00
Daniel Veillard
e0c3a62c91 - Makefile.am valid.c list.[ch]: Gary Pennington provided a
better handling of ID/IDREF and the list modules associated
- configure.in: small CFLAGS cleanup
Daniel
2001-02-19 18:05:20 +00:00
Daniel Veillard
b6e7fdbac6 Rewrite/cleanup/tests of URI normalization:
- uri.c: rewrite of xmlNormalizeURIPath from Paul D. Smith
- test/URI/smith.uri result/URI/smith.uri Makefile.am:
  added the new tests for URI normalization
- testURI.c: fixed stoopid bugs
- result/VC/OneID3 result/VC/UniqueElementTypeDeclaration:
  the URI in the error messages are now properly normalized
Daniel
2001-02-02 17:07:32 +00:00
Daniel Veillard
2f913b7470 Fixes inherited from XSLT testing:
- xpath.c result/XPath/tests/chaptersbase
  result/XPath/tests/simplebase: fixed XPath node()
- tree.c: small fix in xmlNewNs()
- Makefile.am: removed extraneous xml2Conf.sh rule
Daniel
2001-01-31 13:23:49 +00:00
Daniel Veillard
b42042b57d Renamed the library to libxml2 and made the changes needed to have
libxml-devel and libxml2-devel to coexist:
- Makefile.am configure.in libxml.spec.in example/Makefile.am:
  Changed the library name, in order to get libxml-devel and
  libxml2-devel to coexist on a single system
- xml-config.1 xml-config.in xmlConf.sh.in: renamed
- xml2-config.1 xml2-config.in xml2Conf.sh.in: new files
Daniel
2001-01-28 07:40:36 +00:00
Daniel Veillard
ee0a4660b0 - Makefile.am configure.in libxml-2.0.pc.in: started working on getting
libxml2-devel installable in // as libxml-devel.
Daniel
2001-01-27 18:59:33 +00:00
Daniel Veillard
8e19990680 Some packaging cleanup:
- Makefile.am doc/Makefile.am libxml.spec.in: painful work to get
  the HTML doc to go into the -devel RPM ...
- aclocal.m4 config.h.in: some updates due to auto* magic
Daniel
2001-01-25 18:54:39 +00:00
Daniel Veillard
48177c22d7 Fixed a problem with EXTRA_DiST, Daniel. 2001-01-23 15:27:41 +00:00
Daniel Veillard
b83ba408b1 took me nearly 2 years to find the way to not build in SUBDIRS before
the current dir. Did I said previously how I hate auto* (but still love
it when it works :-)
Daniel
2001-01-22 22:45:10 +00:00
Daniel Veillard
ccc86a75a8 Updated to include all Win32 makefiles, daniel 2001-01-17 08:26:18 +00:00
Daniel Veillard
167bd53151 Old but effective optimization patch:
- parser.c parserInternals.c: applied Bjorn Reese optimization patch
Daniel
2001-01-06 21:09:34 +00:00
Daniel Veillard
a6d8eb6256 Finally had a bit of time to resynch both trees:
- HTMLparser.[ch]: added a way to avoid adding automatically
  omitted tags. htmlHandleOmittedElem() allows to change the
  default handling.
- tree.[ch] xmllint.c: added xmlDocDumpFormatMemory() and
  xmlDocDumpFormatMemoryEnc(), uses memory functions for output
  of xmllint too when using --memory flag, added a memory test
  suite at the Makefile level.
- xpathInternals.h xpath.[ch] xpointer.c: fixed problems
  with namespace use when encountering QNames in XPath evalation,
  added xmlns() scheme in XPointer.
- nanoftp.c : incorporated a fix
- parser.c xmlIO.c: fixed problems raised with encoding when using
  the memory I/O
- parserInternals.c: closed bug 25934 reported by
  torsten.landschoff@innominate.de
- TODO: updated
Daniel
2000-12-27 10:46:47 +00:00
Daniel Veillard
ce6e98d693 Big OpenVMS patch: - nanohttp.c parser.[ch] tree.[ch] xmlIO.[ch] xmllint.c
Big OpenVMS patch:
- nanohttp.c parser.[ch] tree.[ch] xmlIO.[ch] xmllint.c xpath.c
  parserInternals.h vms/build_libxml.com vms/config.vms Makefile.am:
  integrated a set of OpenVMS changes from Howard Taylor
  <Howard.Taylor@pacoast.com>
Daniel
2000-11-25 09:54:49 +00:00
Elliot Lee
0d2340cd63 Make the .m4 file install properly (Makefile.am) Ignore some files.
Make the .m4 file install properly (Makefile.am)
Ignore some files.
2000-11-14 23:47:56 +00:00
Daniel Veillard
bf43275dd1 Bug fixes new Xinclude tests:
- nanoftp.c: fixed gcc 2.95 new warnings
- SAX.c: fixed a stupid bug
- tree.c: fixed a formatting problem when round-tripping
  from/to memory
- xinclude.c: chased memleak, fixed a base problem
- xpointer.c: added xmlXPtrBuildRangeNodeList(), finished ?
  xmlXPtrBuildNodeList()
- TODO: updated
- Makefile.am test/XInclude/docs test/XInclude/ents result/XInclude:
  adding a first small set of regression tests for XInclude
Daniel
2000-11-12 15:56:56 +00:00
Daniel Veillard
9e8bfae59a XInclude and other stuff while travelling. Contributed patches:
- tree.[ch] xinclude.[ch] xmllint.c configure.in valid.c
  debugXML.c xmlversion.h.in: Started adding XInclude support,
  this is a new xmllint option
- tree.c xpath.c: applied TOM patches for XPath
- xpointer.c: fixed a couple of errors.
- uri.c: added an escaping function needed for xinclude
- testXPath.c hash.c HTMLtree.c: minor cleanups raised by
  new warning from RH70 gcc's version
Daniel
2000-11-06 16:43:11 +00:00
Daniel Veillard
a4964b7500 - HTMLparser.c: fixed loop on invalid char in scripts
- parser.c: update to description of xmlIOParseDTD()
- libxml.m4 xmlversion.h.in: changes contributed by
  Michael Schmeing <m.schmeing@internet-factory.de>
- configure.in: preparing for 2.2.7
- Makefile.am: trying to avoid  config.h and acconfig.h
  being included in the distrib
- rebuilt the docs
- configure.in: released 2.2.7
Daniel
2000-10-31 18:23:44 +00:00
Daniel Veillard
52afe800ac Started working on the hash table module integration, fixed a bug:
- entities.[ch] xpath.[ch] hash.[ch] debugXML.c tree.h: added/hacked
  hash tables from Bjorn Reese <breese@mail1.stofanet.dk>. Switched
  XPath functions and XML entities table to them. More to come...
- xmlIO.c: fixed libxml closing FILEs it didn't open.
Daniel
2000-10-22 16:56:02 +00:00
Daniel Veillard
c2df4cde4e Going forward in XPointer implementation:
- testXPath.c xpath.[ch]: moved some debug functions to xpath core
- xpointer.c: implemented string-range() at least a good first version
- test/XPath/docs/str test/XPath/xptr/strrange
  result/XPath/xptr/strrange: the string-range() tests
Daniel
2000-10-12 23:15:24 +00:00
Daniel Veillard
47c024516e Added a man page for xml-config Fredrik Hallenberg <hallon@lysator.liu.se>, Daniel. 2000-10-11 13:04:36 +00:00
Daniel Veillard
c8df0aaf9f Added XPointer: - configure.in Makefile.am include/makefile.am: adding
Added XPointer:
- configure.in Makefile.am include/makefile.am: adding XPointer
  and XPtrtests target
- xpointer.[ch] : new files for XPointer support
- test/XPath/xptr result/XPath/xptr: added XPointer testsuite and
  more XPath tests
Daniel
2000-10-10 23:50:30 +00:00
Daniel Veillard
e8282edd45 More work toward 2.2.5, integrated a number of patches
- configure.in Makefile.am win32config.h.in: trying to cleanup
  make distcheck .... huh ...
- include/Makefile.am include/win32config.h: new directory
  for includes
- win32/Makefile.mingw win32/README.MSDev win32/libxml2/libxml2.dsp
  updated teh makefiles and instructions for WIN32
- xpath.c: small fixes
- test/XPath/ results/XPath: updated the testcases and results
- HTMLparser.c nanohttp.c testXPath.c: incorporated provided or
  suggested patches
- valid.c: fixed an ID bug
Daniel
2000-10-10 23:01:31 +00:00
Daniel Veillard
b71379b796 - moved xml-error.h to xmlerror.h: seems this allowed to bypass
the automake bug where wrong dependancies were generated.
- xpath.[ch]: worked on XPointer
Daniel
2000-10-09 12:30:39 +00:00
Daniel Veillard
7e99c63be0 Tried to build libxml2-2.2.5
Automake is a fucking piece of ugly shit full of tricks and without
any kind of sensible documentation or logic :-(((((((((
Daniel, pissed !
2000-10-06 12:59:53 +00:00
Daniel Veillard
f09e7e35de XPath fixes and cleanup, 2 general bug fixes:
- xpath.[ch] : fixed some serious XPath Predicate evaluation
  problems
- Makefile.am : added XPath regression tests to normal tests
- uri.c: fixed a problem with local paths, cleanup
- parser.c: fixed a problem with large CData sections
Daniel
2000-10-01 15:53:30 +00:00
Martin Baulig
1b478d113c Use the correct pkg-config syntax
(the pkg-config that comes with the RedHat 7.0 glib-gtkbeta RPM
 and not the one from pkgconfig.sourceforge.net which is old).
2000-09-30 02:27:55 +00:00
Martin Baulig
dd7d1f6d79 Provide pkg-config script.
2000-09-30  Martin Baulig  <baulig@suse.de>

	* libxml-2.0.pc.in: Provide pkg-config script.

	* configure.in: Create the libxml-2.0.pc script from the
	libxml-2.0.pc.in templates.
	* Makefile.am (pkgconfig_DATA): Install the libxml-2.0.pc
	script in `$(libexecdir)/pkgconfig'.
2000-09-29 23:17:57 +00:00
Daniel Veillard
46057e141c Various contribs: - xpath.c: patch for normalize-string()
Various contribs:
- xpath.c: patch for normalize-string() substring-before(),
  substring-after() and translate() functions from Bjorn Reese
  <breese@mail1.stofanet.dk>
- libxml.m4 Makefile.am: added libxml.m4 from Debian ?
  Fredrik Hallenberg <hallon@lysator.liu.se>
- TODO: updated
Daniel
2000-09-24 18:49:59 +00:00
Daniel Veillard
b1059e2f88 Finally commiting work done on the plane, major cleanup,
spread some serious anti bitrot all over the place:
- parserInternals.c parserInternals.h parser.c Makefile.am:
  created a new module parserInternals.c, moved most of the
  code shared by the various parsers there, as well as
  deprecated  code from parser.c. More cleanup of parser.c
- uri.c: fixed a problem when URI is NULL
- valid.c: speedup when looking for an attribute declaration
Daniel
2000-09-16 14:02:43 +00:00
Daniel Veillard
90e1131a60 - uri.c: applied Wayne Davidson patch
- Makefile.in test/URI/uri.data result/URI/uri.data: updated URI tests
Daniel
2000-09-05 10:42:32 +00:00
Daniel Veillard
98a7916ba1 URI work cleanup and regresssion tests,
- uri.c testUri.c: applied Wayne Davidson patches
- test/URI/uri.data result/URI/uri.data: first set of tests/results
- Makefile.in: added URItest and included thenin "make tests"
Daniel
2000-09-04 11:15:39 +00:00
Daniel Veillard
2f2bf417f8 Small cleanups, updates, Daniel 2000-08-20 15:11:02 +00:00
Daniel Veillard
979e55e889 Added man pages, Daniel 2000-08-19 16:48:54 +00:00
Daniel Veillard
87b9539573 Large sync between my W3C base and Gnome's one:
- parser.[ch]: added xmlGetFeaturesList() xmlGetFeature() and xmlAddFeature()
- tree.[ch]: added xmlAddChildList()
- xmllint.c: MAP_FAILED macro test
- parser.h: added xmlParseCtxtExternalEntity()
- valid.c: applied bug fixes removed warning
- tree.c: added CDATA block to elements content
- testSAX.c: cleanup of output
- testHTML.c: added SAX testing
- encoding.c: better error recovery
- SAX.c, parser.c: fixed one of the external entity processing of the OASis testsuite
- Makefile.am: added HTML SAX regression tests
- configure.in: bumped to 2.2.2
- test/HTML/ result/HTML: added a few of HTML tests, and added the SAX results

Daniel
2000-08-12 21:12:04 +00:00
Daniel Veillard
be803967db - Large resync between W3C and Gnome tree
- configure.in: 2.1.0 prerelease
- example/Makefile.am example/gjobread.c tree.h: work on
  libxml1 libxml2 convergence.
- nanoftp, nanohttp.c: fixed stalled connections probs
- HTMLtree.c SAX.c : support for attribute without values in
  HTML for andersca
- valid.c: Fixed most validation + namespace problems
- HTMLparser.c: start document callback for andersca
- debugXML.c xpath.c: lots of XPath fixups from Picdar Technology
- parser.h, SAX.c: serious speed improvement for large
  CDATA blocks
- encoding.[ch] xmlIO.[ch]: Improved seriously saving to
  different encoding
- config.h.in parser.c xmllint.c: added xmlCheckVersion()
  and the LIBXML_TEST_VERSION macro
Daniel
2000-06-28 23:40:59 +00:00
Daniel Veillard
361d845de0 Work done on the plane, ready to release libxml2-2.0.0, Daniel 2000-04-03 19:48:13 +00:00
Daniel Veillard
ec30341c5c uri.c uri.h: finished the escaping handling, the base support and the URI
path normalization.
Makefile.am: added instructions to generate testURI
TODO: updated
doc/xml.html, doc/smallfootonly.gif doc/w3c.png: updated,
      added links and icons for W3C and Gnome
Daniel
2000-03-24 13:41:54 +00:00
Daniel Veillard
3dd82e7c2a - TODO: updated - xmlmemory.[ch] : added xmlMemSetup() and xmlMemGet() to
- TODO: updated
- xmlmemory.[ch] : added xmlMemSetup() and xmlMemGet() to override
  libxml default allocation function with another set (like gmalloc/gfree).
- Makefile.am, uri.c, uri.h: added a set of functions to do exact (litteraly
  copied from the RFC 2396 productions) parsing and handling of URI.
Daniel
2000-03-20 11:48:04 +00:00
Daniel Veillard
83a30e7a16 Fixed #6766 and satrted working on white space handling, Daniel 2000-03-02 03:33:32 +00:00
Tomasz Kłoczko
ae7cb7fefb - added "libxml_la_LIBADD = @Z_LIBS@" to link libxml with proper libraries
list.
2000-02-02 23:51:10 +00:00
James Henstridge
f3be931a2e include <netinet/in.h> for IPPROTO_TCP.
2000-01-29  James Henstridge <james@daa.com.au>

        * nanoftp.c: include <netinet/in.h> for IPPROTO_TCP.

        * Makefile.am: added nanoftp.[ch] to the build.
2000-01-28 13:59:21 +00:00
Daniel Veillard
9ec78f716a Released 1.8.3, Daniel 2000-01-05 16:31:25 +00:00
Daniel Veillard
71b656e067 - added xmlRemoveID() and xmlRemoveRef()
- added check and handling when possibly removing an ID
- fixed some entities problems
- added xmlParseTryOrFinish()
- changed the way struct aredeclared to allow gtk-doc to expose those
- closed #4960
- fixes to libs detection from Albert Chin-A-Young
- preparing 1.8.3 release
Daniel
2000-01-05 14:46:17 +00:00
Daniel Veillard
437b87b8cc fixed configure and Makefile to use readline in tester if available
rebuilt and updated the doc,
Daniel
2000-01-03 17:30:46 +00:00
Daniel Veillard
10a2c6532a Large commit of changes done while travelling to XML'99
- cleanups on memory use and parsers
- start of Link interfaces HTML and XLink
- rebuild the doc
- released as 1.8.0
Daniel
1999-12-12 13:03:50 +00:00
Daniel Veillard
294cbca511 Closing #3908 and #3937 and a memory leak in the SAX API
added SAX.h mostly useful for the doc generation
Regenerated all the docs,
Daniel
1999-12-03 13:19:09 +00:00