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

1995 Commits

Author SHA1 Message Date
Daniel Veillard
bc92ecad5c more parser error factoring Daniel
* parser.c: more parser error factoring
Daniel
2003-09-15 09:48:06 +00:00
William M. Brack
3a6da760c5 Fixed bug 121394 - missing ns on attributes
* HTMLtree.c: Fixed bug 121394 - missing ns on attributes
2003-09-15 04:58:14 +00:00
Daniel Veillard
bdbe0d4e78 factoring of more error handling code, serious size reduction and more
* parser.c include/libxml/xmlerror.h: factoring of more
  error handling code, serious size reduction and more lisibility
  of the resulting code.
* parserInternals.c parser.c include/libxml/parserInternals.h
  include/libxml/parser.h: changing the way VC:Proper Group/PE Nesting
  checks are done, use a counter for entities. Entities where freed and
  reallocated at the same address failing the check.
* tree.c: avoid a warning
* result/valid/* result/VC/*: this slightly changes some validation
  error messages.
Daniel
2003-09-14 19:56:14 +00:00
William M. Brack
4e52f2f430 fixed bug 121759 - early declaration of attribute-list in external DTD
* valid.c: fixed bug 121759 - early declaration of
  attribute-list in external DTD
2003-09-14 18:07:39 +00:00
Daniel Veillard
899abafb26 Forgot to add some more tests for namespace error handling, Daniel 2003-09-13 12:45:33 +00:00
Daniel Veillard
1afc9f3356 starting cleaning up error handling, factorize error processing update of
* parser.c include/libxml/xmlerror.h: starting cleaning up
  error handling, factorize error processing
* doc/xmllint.html: update of the page, remove --sgml
Daniel
2003-09-13 12:44:05 +00:00
Daniel Veillard
877a7bd6a3 removing the broken pseudo SGML DocBook parser code. Daniel
* Makefile.am DOCBparser.c parserInternals.c testDocbook.c
  xmllint.c doc/xmllint.xml doc/xmllint.1: removing the
  broken pseudo SGML DocBook parser code.
Daniel
2003-09-13 00:16:32 +00:00
Daniel Veillard
5dd3c9622a fix a problem with strcpy() in xmlXPathFormatNumber() valgrind pointed out
* xpath.c: fix a problem with strcpy() in xmlXPathFormatNumber()
  valgrind pointed out the strings overlapped. cleanup .
Daniel
2003-09-12 15:32:16 +00:00
Daniel Veillard
2a3fea37e1 applied speedup to xmlSearchNs() as suggested by Luca Padovani. Cleaned up
* tree.c: applied speedup to xmlSearchNs() as suggested by
  Luca Padovani. Cleaned up xmlSearchNsByHref() in the process
  applying the same trick.
Daniel
2003-09-12 09:44:56 +00:00
Daniel Veillard
e72f42c168 Ooops forgot to commit them, Daniel 2003-09-12 00:21:05 +00:00
Daniel Veillard
3b7840cd6c adding namespace checkings while making sure they still parse as
* parser.c parserInternals.c tree.c include/libxml/parser.h
  include/libxml/xmlerror.h: adding namespace checkings
  while making sure they still parse as wellformed documents.
  Add an nsWellFormed status report to the context, and
  provide new appropriate error codes.
* Makefile.am result/namespaces/* test/namespaces/*: add
  specific regression testing for the new namespace support
* test/att5 result/noent/att5 result/att5 result/att5.sax:
  add more coverage for the attribute parsing and normalization
  code.
Daniel
2003-09-11 23:42:01 +00:00
Daniel Veillard
5f1e1f8a87 backport of a thread bugfix from 2_5_X branch Daniel
* threads.c: backport of a thread bugfix from 2_5_X branch
Daniel
2003-09-11 23:35:09 +00:00
Daniel Veillard
c6e20e44dd fixed a bug in one corner case of attribute parsing. Daniel
* parser.c: fixed a bug in one corner case of attribute parsing.
Daniel
2003-09-11 16:30:26 +00:00
Daniel Veillard
07cb8226c0 Time to commit 3 days of work rewriting the parser internal,
fixing bugs and migrating to SAX2 interface by default. There
is some work letf TODO, like namespace validation and attributes
normalization (this break C14N right now)
* Makefile.am: fixed the test rules
* include/libxml/SAX2.h include/libxml/parser.h
  include/libxml/parserInternals.h SAX2.c parser.c
  parserInternals.c: changing the parser, migrating to SAX2,
  adding new interface to switch back to SAX1 or initialize a
  SAX block for v1 or v2. Most of the namespace work is done
  below SAX, as well as attribute defaulting
* globals.c: changed initialization of the default SAX handlers
* hash.c tree.c include/libxml/hash.h: added QName specific handling
* xmlIO.c: small fix
* xmllint.c testSAX.c: provide a --sax1 switch to test the old
  version code path
* result/p3p result/p3p.sax result/noent/p3p test/p3p: the new code
  pointed out a typo in a very old test namespace
Daniel
2003-09-10 10:51:05 +00:00
Daniel Veillard
8e36e6a0be 2.6.0beta1 changes Fixing attribute normalization, might not be totally
* configure.in doc/* : 2.6.0beta1 changes
* SAX2.c hash.c parser.c parserInternals.c: Fixing attribute
  normalization, might not be totally fixed but this should
  make sure SAX event provide the right strings for attributes
  except entities for which libxml2 is different by default
  This should fix #109564
* result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes
  in attribute callback values
* result/c14n/with-comments/example-4
  result/c14n/without-comments/example-4: this also fixes a subtle
  bug in the canonicalization tests.
Daniel
2003-09-10 10:50:59 +00:00
Daniel Veillard
e57ec790de Time to commit 3 days of work rewriting the parser internal,
fixing bugs and migrating to SAX2 interface by default. There
is some work letf TODO, like namespace validation and attributes
normalization (this break C14N right now)
* Makefile.am: fixed the test rules
* include/libxml/SAX2.h include/libxml/parser.h
  include/libxml/parserInternals.h SAX2.c parser.c
  parserInternals.c: changing the parser, migrating to SAX2,
  adding new interface to switch back to SAX1 or initialize a
  SAX block for v1 or v2. Most of the namespace work is done
  below SAX, as well as attribute defaulting
* globals.c: changed initialization of the default SAX handlers
* hash.c tree.c include/libxml/hash.h: added QName specific handling
* xmlIO.c: small fix
* xmllint.c testSAX.c: provide a --sax1 switch to test the old
  version code path
* result/p3p result/p3p.sax result/noent/p3p test/p3p: the new code
  pointed out a typo in a very old test namespace
Daniel
2003-09-10 10:50:59 +00:00
Daniel Veillard
eec1ae944f Added infor about 2.5.11, Daniel 2003-09-09 13:11:01 +00:00
William M. Brack
c07329e2ab Implemented detection of compressed files, setting doc->compressed
* xmlIO.c include/libxml/xmlIO.h parser.c: Implemented detection
  of compressed files, setting doc->compressed appropriately
  (bug #120503).
2003-09-08 01:57:30 +00:00
Daniel Veillard
f2a941fc1e 2.6.0beta1 changes Fixing attribute normalization, might not be totally
* configure.in doc/* : 2.6.0beta1 changes
* SAX2.c hash.c parser.c parserInternals.c: Fixing attribute
  normalization, might not be totally fixed but this should
  make sure SAX event provide the right strings for attributes
  except entities for which libxml2 is different by default
  This should fix #109564
* result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes
  in attribute callback values
* result/c14n/with-comments/example-4
  result/c14n/without-comments/example-4: this also fixes a subtle
  bug in the canonicalization tests.
Daniel
2003-09-07 20:54:29 +00:00
Daniel Veillard
bbeb9f9e26 try to cope with the fact that apps may still have allocated smaller SAX
* parser.c: try to cope with the fact that apps may still
  have allocated smaller SAX callbak block
Daniel
2003-09-07 20:54:29 +00:00
Daniel Veillard
0fb1893539 allow to give -1 for undefined length in lookups first round of work on
* dict.c: allow to give -1 for undefined length in lookups
* include/libxml/parser.h parser.c parserInternals.c testSAX.c:
  first round of work on the new SAX2 interfaces, the API
  will change but commiting before changing for historical
  reference.
Daniel
2003-09-07 09:14:37 +00:00
William M. Brack
4811ba3bc2 fixed bug #121210 (callback to sax->error, sax->warning with wrong
* SAX2.c, xmlIO.c: fixed bug #121210 (callback to sax->error,
  sax->warning with wrong params).
2003-09-06 18:02:53 +00:00
Daniel Veillard
93625d300f patch from Stphane Bidoul to export globals entry points to the python
* include/libxml/globals.h: patch from Stphane Bidoul to export
  globals entry points to the python bindings
Daniel
2003-09-05 08:36:12 +00:00
Daniel Veillard
40412cda44 when creating a DOCTYPE use "html" lowercase by default instead of "HTML"
* HTMLparser.c: when creating a DOCTYPE use "html" lowercase
  by default instead of "HTML"
* parser.c xmlreader.c: optimization, gain a few % parsing speed by
  avoiding calls to "areBlanks" when not needed.
* include/libxml/parser.h include/libxml/tree.h: some structure
  extensions for future work on using per-document dictionaries.
Daniel
2003-09-03 13:28:32 +00:00
Daniel Veillard
4b1577f14a removing the SAXresults tree, keeping result in the same tree, added
* Makefile.am results/*.sax SAXResult/*: removing the SAXresults
  tree, keeping result in the same tree, added SAXtests to the
  default "make tests"
Daniel
2003-09-03 13:10:37 +00:00
Daniel Veillard
ac097cc683 2.6.0beta1 changes Fixing attribute normalization, might not be totally
* configure.in doc/* : 2.6.0beta1 changes
* SAX2.c hash.c parser.c parserInternals.c: Fixing attribute
  normalization, might not be totally fixed but this should
  make sure SAX event provide the right strings for attributes
  except entities for which libxml2 is different by default
  This should fix #109564
* result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes
  in attribute callback values
* result/c14n/with-comments/example-4
  result/c14n/without-comments/example-4: this also fixes a subtle
  bug in the canonicalization tests.
Daniel
2003-09-03 13:10:34 +00:00
Daniel Veillard
3d1e00c421 removing the SAXresults tree, keeping result in the same tree, added
* Makefile.am results/*.sax SAXResult/*: removing the SAXresults
  tree, keeping result in the same tree, added SAXtests to the
  default "make tests"
Daniel
2003-09-03 13:10:34 +00:00
Daniel Veillard
6c57dcaff8 Added a link and image for the protest against software patents, rebuilt
the web pages,
Daniel
2003-09-03 10:10:51 +00:00
Igor Zlatkovic
5e483c86a1 additional macros, mingw section 2003-09-02 14:01:32 +00:00
Igor Zlatkovic
471cae4da0 *** empty log message *** 2003-09-02 14:00:49 +00:00
William M. Brack
008c06b479 fixed problem parsing xhtml docs small modification to avoid problem in
* doc/index.py: fixed problem parsing xhtml docs
* doc/xmlreader.html,doc/guidelines.html: small modification
  to avoid problem in python parsing.
* doc/search.php: fixed upper case filename problem for XSLT docs
2003-09-01 22:17:39 +00:00
Daniel Veillard
10acc2f37a patch from Mark Vakoc that allows compiling with XInclude but without
* xinclude.c: patch from Mark Vakoc that allows compiling
  with XInclude but without XPointer support.
Daniel
2003-09-01 20:59:40 +00:00
Daniel Veillard
e8553730ed Applied a patch from Kevin P. Fleming to add --libtool-libs option to
* configure.in xml2-config.in: Applied a patch from Kevin P. Fleming
  to add --libtool-libs option to xml2-config script.
Daniel
2003-09-01 20:33:14 +00:00
Daniel Veillard
4fc5281dee 2.6.0beta1 changes Fixing attribute normalization, might not be totally
* configure.in doc/* : 2.6.0beta1 changes
* SAX2.c hash.c parser.c parserInternals.c: Fixing attribute
  normalization, might not be totally fixed but this should
  make sure SAX event provide the right strings for attributes
  except entities for which libxml2 is different by default
  This should fix #109564
* result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes
  in attribute callback values
* result/c14n/with-comments/example-4
  result/c14n/without-comments/example-4: this also fixes a subtle
  bug in the canonicalization tests.
Daniel
2003-09-01 20:33:13 +00:00
Daniel Veillard
90d165b7e7 Applied a patch from Kevin P. Fleming to add --libtool-libs option to
* configure.in xml2-config.in: Applied a patch from Kevin P. Fleming
  to add --libtool-libs option to xml2-config script.
Daniel
2003-09-01 20:33:13 +00:00
William M. Brack
3f47950374 new file added, giving some description of the documentation generation
* doc/README.docs, doc/Makefile.am: new file added,
  giving some description of the documentation generation process
* doc/search.php: fixed problem with upper case on filenames
2003-09-01 04:58:15 +00:00
Igor Zlatkovic
47a428d819 updates by Eric Zurcher 2003-08-29 10:25:39 +00:00
Igor Zlatkovic
f5f3718703 *** empty log message *** 2003-08-29 10:25:28 +00:00
Daniel Veillard
e24c7dca4f 2.6.0beta1 changes Fixing attribute normalization, might not be totally
* configure.in doc/* : 2.6.0beta1 changes
* SAX2.c hash.c parser.c parserInternals.c: Fixing attribute
  normalization, might not be totally fixed but this should
  make sure SAX event provide the right strings for attributes
  except entities for which libxml2 is different by default
  This should fix #109564
* result/attrib.xml.sax result/ent3.sax result/p3p.sax: minor changes
  in attribute callback values
* result/c14n/with-comments/example-4
  result/c14n/without-comments/example-4: this also fixes a subtle
  bug in the canonicalization tests.
Daniel
2003-08-29 06:03:38 +00:00
William M. Brack
cdfa286c39 enhanced code to compensate for pollution from Igor's header taint (quick
* doc/apibuild.py, doc/libxml2-api.xml: enhanced code
  to compensate for pollution from Igor's header taint
  (quick before Daniel notices)
2003-08-29 06:03:38 +00:00
Daniel Veillard
67906944fc fixed a namespace error on attribute reporting bug pointed out by Tobias
* SAX2.c: fixed a namespace error on attribute reporting bug
  pointed out by Tobias Reif
* test/p3p result/p3p result/noent/p3p: this test case was wrong
  using xmlsn instead of xmlns...
Daniel
2003-08-28 21:13:25 +00:00
Igor Zlatkovic
01d99951a5 fixed typos reported by Mark Vakoc 2003-08-28 16:26:39 +00:00
Igor Zlatkovic
6590125e0f *** empty log message *** 2003-08-28 16:26:12 +00:00
MDT 2003 John Fleck
bc6734a5c5 add: doc/tutorial/api.html doc/tutorial/ar01s09.html
Thu Aug 28 08:59:51 MDT 2003 John Fleck <jfleck@inkstain.net>

	add:
	* doc/tutorial/api.html
	* doc/tutorial/ar01s09.html
	* doc/tutorial/includexpath.c
	updated
	* doc/tutorial/*.html
	fix my bad - forgot to check in new files when I last
	updated
2003-08-28 15:01:40 +00:00
Igor Zlatkovic
db0793aee6 *** empty log message *** 2003-08-28 12:35:02 +00:00
Igor Zlatkovic
9e0acaa03f Added support for Borland C++ 2003-08-28 12:34:00 +00:00
Igor Zlatkovic
19b8764833 fixed time inclusion for various compilers 2003-08-28 12:32:04 +00:00
Igor Zlatkovic
01c0cedaa7 minor path fix 2003-08-28 10:49:25 +00:00
Igor Zlatkovic
d37c1394a7 added few casts to shut the compiler warnings 2003-08-28 10:34:33 +00:00
Igor Zlatkovic
a6ceeb412e no more win32config.h 2003-08-28 10:25:13 +00:00