1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-27 03:21:26 +03:00
Commit Graph

263 Commits

Author SHA1 Message Date
William M. Brack
3794b9e84a Added code to in PREDICATE/FILTER handling to reset the xpath context
* xpath.c: Added code to in PREDICATE/FILTER handling to reset
  the xpath context document pointer (part of fix to libxslt
  bug 147445)
2004-07-13 15:06:20 +00:00
William M. Brack
e9449c5d29 added an encoding "special comment" to avoid warning message in python2.3
* python/drv_libxml.py: added an encoding "special comment" to avoid
  warning message in python2.3 (bug 146889)
* Makefile.am, python/Makefile.am, python/tests/Makefile.am: small
  change to make "make tests" a little quieter (MAKEFLAGS+=--silent)
* xpath.c: enhanced to take advantage of current libxslt handling
  of tmpRVT.  Fixes bug 145547.
2004-07-11 14:41:20 +00:00
William M. Brack
8fad8bff2c fixed problem with predicate evaluation on an empty nodeset (bug 143409)
* xpath.c: fixed problem with predicate evaluation on an
  empty nodeset (bug 143409)
2004-06-02 08:26:25 +00:00
William M. Brack
9912705b82 fixed to allow '+' in exponent of number (bug 143005) fixed typo in last
* xpath.c: fixed to allow '+' in exponent of number
  (bug 143005)
* SAX2.c: fixed typo in last commit
2004-05-24 02:52:28 +00:00
Daniel Veillard
9ea6231ece patch from Mark Vakoc for regression tests on Windows. the NaN problem
* win32/Makefile.msvc: patch from Mark Vakoc for regression tests
  on Windows.
* xpath.c: the NaN problem also shows up on Borland
Daniel
2004-04-29 14:04:09 +00:00
Daniel Veillard
d087dbf392 last version of the fix for MSC version 1200 Daniel
* xpath.c: last version of the fix for MSC version 1200
Daniel
2004-04-20 21:41:19 +00:00
Daniel Veillard
7c4eb63bb0 fixed a stupid () error + Mark name. Daniel
* xpath.c: fixed a stupid () error + Mark name.
Daniel
2004-04-19 21:29:12 +00:00
Daniel Veillard
68cb4b2498 relaxed id() to not check taht the name(s) passed are actually NCName,
* xpath.c: relaxed id() to not check taht the name(s) passed
  are actually NCName, decided this in agreement with Aleksey Sanin
  since existing specs like Visa3D broke that conformance checking
  and other tools seems to not implement it sigh...
* SAX2.c: check attribute decls for xml:id and the value is an
  NCName.
* test/xmlid/id_err* result/xmlid/id_err*: added error testing
Daniel
2004-04-18 20:55:39 +00:00
Daniel Veillard
2582a338bf work around Microsoft compiler NaN bug raise reported by Mark Vakoc fixed
* xpath.c: work around Microsoft compiler NaN bug raise reported
  by Mark Vakoc
* xmlschemas.c include/libxml/schemasInternals.h
  include/libxml/xmlerror.h: fixed a recusive expection schemas
  compilation error raised by taihei goi
Daniel
2004-04-18 19:49:46 +00:00
William M. Brack
a59ddb5ea4 fixed a memory leak (xmlXPathLangFunction) reported on the list by Mike
* xpath.c: fixed a memory leak (xmlXPathLangFunction) reported
  on the list by Mike Hommey
2004-02-25 08:12:32 +00:00
William M. Brack
372a445479 fixed problem with numbers having > 19 fractional places (bug 133921)
* xpath.c: fixed problem with numbers having > 19
  fractional places (bug 133921)
2004-02-17 13:09:23 +00:00
Daniel Veillard
f49be4778d applied optimization patch from Petr Pajas Daniel
* xpath.c: applied optimization patch from Petr Pajas
Daniel
2004-02-17 11:48:18 +00:00
Daniel Veillard
b337795500 small patch from Philip Ludlam to avoid warnings. Daniel
* xpath.c: small patch from Philip Ludlam to avoid warnings.
Daniel
2004-02-09 12:48:55 +00:00
Daniel Veillard
5bb9ccd56a remove the warning on the 2001 namespace remove some warnings when
* xinclude.c: remove the warning on the 2001 namespace
* parser.c parserInternals.c xpath.c: remove some warnings
  when compiling with MSVC6
* nanohttp.c: applied a patch when using _WINSOCKAPI_
Daniel
2004-02-09 12:39:02 +00:00
William M. Brack
c07ed5e6a1 added (void *) type override to prevent warning on Solaris (Bug 132671)
* xpath.c: added (void *) type override to prevent
  warning on Solaris (Bug 132671)
2004-01-30 07:52:48 +00:00
Daniel Veillard
4773df2a58 added io1.c an example ox xmlIO usage and io1.res test result, fixed a
* doc/examples/*: added io1.c an example ox xmlIO usage and io1.res
  test result, fixed a awful lot of memory leaks showing up in
  testWriter.c, changed the examples and the Makefiles to test
  memory leaks.
* xmlwriter.c: fixed a memory leak
* Makefile.am: run the doc/examples regression tests as part of
  make tests
* xpath.c include/libxml/xpath.h: added xmlXPathCtxtCompile() to
  compile an XPath expression within a context, currently the goal
  is to be able to reuse the XSLT stylesheet dictionnary, but this
  opens the door to others possible optimizations.
* dict.c include/libxml/dict.h: added xmlDictCreateSub() which allows
  to build a new dictionnary based on another read-only dictionnary.
  This is needed for XSLT to keep the stylesheet dictionnary read-only
  while being able to reuse the strings for the transformation
  dictionnary.
* xinclude.c: fixed a dictionnar reference counting problem occuring
  when document parsing failed.
* testSAX.c: adding option --repeat for timing 100times the parsing
* doc/* : rebuilt all the docs
Daniel
2004-01-23 13:15:13 +00:00
William M. Brack
ce4fc56e1b fixed problem with union when last() is used in predicate (bug #131971)
* xpath.c: fixed problem with union when last() is used
  in predicate (bug #131971)
* xpointer.c: minor change to comment for doc generation
2004-01-22 02:47:18 +00:00
William M. Brack
f7eb794c14 fixed problem pointed out by Stphane Bidoul on the list. completed
* python/generator.py, python/libxml2class.txt: fixed problem
  pointed out by Stphane Bidoul on the list.
* xinclude.c, xpointer.c, xpath.c, include/libxml/xpointer.h:
  completed modifications required to fix Bug 129967 (at last!).
  Now wait to see how long before further trouble...
2003-12-31 07:59:17 +00:00
William M. Brack
72ee48d55f Fixed memory leak reported by Dave Beckett Removed spurious comment
* parser.c, xmlmemory.c, include/libxml/xmlmemory.h: Fixed
  memory leak reported by Dave Beckett
* xmlschemas.c: Removed spurious comment reported on the mailing
  list
* xinclude.c, xpath.c, xpointer.c, libxml/include/xpointer.h:
  Further work on Bug 129967 concerning xpointer range handling
  and range-to function; much better, but still not complete
2003-12-30 08:30:19 +00:00
William M. Brack
081719182d edited a couple of comments in accordance with posting on the mailing list
* xmlschemas.c: edited a couple of comments in accordance with
  posting on the mailing list (no logic change)
* xpointer.c: working on Bug 129967, added check for NULL
  nodeset to prevent crash.  Further work required.
* xpath.c: working on Bug 129967, added code to handle
  XPATH_LOCATIONSET in RANGETO code, also added code to
  handle it in xmlXPathEvaluatePredicateResult.  Further
  work required.
2003-12-29 02:52:11 +00:00
William M. Brack
e8d1bd9daa small enhancement to xmlXPathCmpNodes to assure document order for
* xpath.c: small enhancement to xmlXPathCmpNodes to assure
  document order for attributes is retained (Bug 129331)
2003-12-23 01:28:58 +00:00
Daniel Veillard
f88d8cf9f1 tried to fix the problems reported in bug #126735 fixed again some problem
* python/libxml.py: tried to fix the problems reported in
  bug #126735
* xpath.c SAX2.c error.c parser.c valid.c include/libxml/xmlerror.h:
  fixed again some problem trying to use the structured error
  handlers, c.f. bug #126735
* result/VC/ElementValid: tiny change due to the fix
Daniel
2003-12-08 10:25:02 +00:00
William M. Brack
c125a721a4 fixed bug 126976 (string != empty nodeset should be false)
* xpath.c: fixed bug 126976 (string != empty nodeset
  should be false)
2003-11-16 08:06:19 +00:00
Daniel Veillard
94394cd1e4 more fixes about unregistering objects applied patch from Mark Vakoc
* xpath.c: more fixes about unregistering objects
* include/libxml/relaxng.h: applied patch from Mark Vakoc
  missing _cplusplus processing clause
Daniel
2003-10-29 17:07:51 +00:00
Daniel Veillard
e991fe958f change suggested by Anthony Carrico when unregistering a namespace prefix
* xpath.c: change suggested by Anthony Carrico when unregistering
  a namespace prefix to a context
* hash.c: be more careful about calling callbacks with NULL payloads.
Daniel
2003-10-29 11:18:37 +00:00
Daniel Veillard
ae9733aeaf applied patch from nico@xtradyne.com for #125030 Daniel
* xpath.c: applied patch from nico@xtradyne.com for #125030
Daniel
2003-10-28 19:02:21 +00:00
Daniel Veillard
7869729c8e adding xmlNodeBufGetContent() allowing to grab the content without forcing
* tree.c include/libxml/tree.h: adding xmlNodeBufGetContent()
  allowing to grab the content without forcing allocations.
* python/libxml2class.txt doc/libxml2-api.xml: rebuilt the API
* xpath.c xmldwalk.c: removed a couple of comment errors.
Daniel
2003-10-19 20:44:43 +00:00
William M. Brack
76e95df055 Changed all (?) occurences where validation macros (IS_xxx) had
* include/libxml/parserInternals.h HTMLparser.c HTMLtree.c
  SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c
  testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c
  xpath.c: Changed all (?) occurences where validation macros
  (IS_xxx) had single-byte arguments to use IS_xxx_CH instead
  (e.g. IS_BLANK changed to IS_BLANK_CH).  This gets rid of
  many warning messages on certain platforms, and also high-
  lights places in the library which may need to be enhanced
  for proper UTF8 handling.
2003-10-18 16:20:14 +00:00
Daniel Veillard
659e71ec24 Setting up the framework for structured error reporting, touches a lot of
* HTMLparser.c c14n.c catalog.c error.c globals.c parser.c
  parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c
  xmlschemas.c xpath.c xpointer.c include/libxml/globals.h
  include/libxml/parser.h include/libxml/valid.h
  include/libxml/xmlerror.h: Setting up the framework for structured
  error reporting, touches a lot of modules, but little code now
  the error handling trail has been cleaned up.
Daniel
2003-10-10 14:10:40 +00:00
Daniel Veillard
fcf719ce0a cleanup migrated XPointer module to the new error mechanism Daniel
* xpath.c: cleanup
* xpointer.c include/libxml/xmlerror.h: migrated XPointer module
  to the new error mechanism
Daniel
2003-10-10 11:42:17 +00:00
William M. Brack
40c22b472b fixed bug 124061 (problem with namespace eval)
* xpath.c: fixed bug 124061 (problem with namespace eval)
2003-10-10 03:58:39 +00:00
Daniel Veillard
d96f6d3429 cleaning up XPath error reporting that time. applied the two patches for
* error.c include/libxml/xmlerror.h include/libxml/xpath.h
  include/libxml/xpathInternals.h xpath.c: cleaning up XPath
  error reporting that time.
* threads.c: applied the two patches for TLS threads
  on Windows from Jesse Pelton
* parser.c: tiny safety patch for xmlStrPrintf() make sure the
  return is always zero terminated. Should also help detecting
  passing wrong buffer size easilly.
* result/VC/* result/valid/rss.xml.err result/valid/xlink.xml.err:
  updated the results to follow the errors string generated by
  last commit.
Daniel
2003-10-07 21:25:12 +00:00
Daniel Veillard
4432df239b cleanup, creating a new legacy.c module, made sure make tests ran in
* Makefile.am: cleanup, creating a new legacy.c module,
  made sure make tests ran in reduced conditions
* SAX.c SAX2.c configure.in entities.c globals.c parser.c
  parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c
  xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in:
  increased the modularization, allow to configure out
  validation code and legacy code, added a configuration
  option --with-minimum compiling only the mandatory code
  which then shrink to 200KB.
Daniel
2003-09-28 18:58:27 +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
William M. Brack
78637da0ea fixing bug 118559 2003-07-31 14:47:38 +00:00
Daniel Veillard
9deb242b55 applied a change suggested by Sean Griffin in bug #118494 about a memory
* xpath.c: applied a change suggested by Sean Griffin in bug
  #118494 about a memory leak in EXSLT
Daniel
2003-07-28 20:40:59 +00:00
Daniel Veillard
34ba387936 removed some warnings by casting xmlChar to unsigned int and a couple of
* DOCBparser.c HTMLparser.c entities.c parser.c relaxng.c
  xmlschemas.c xpath.c: removed some warnings by casting xmlChar
  to unsigned int and a couple of others.
* xmlschemastypes.c: fixes a segfault on empty hexBinary strings
Daniel
2003-07-15 13:34:05 +00:00
Daniel Veillard
7a985a18c2 fixed 2 bugs pointed in #116448 Daniel
* debugXML.c xpath.c: fixed 2 bugs pointed in #116448
Daniel
2003-07-06 17:57:42 +00:00
Daniel Veillard
d9d32aebd3 use the character() SAX callback if the cdataBlock ain't defined. fix bug
* parser.c HTMLparser.c: use the character() SAX callback
  if the cdataBlock ain't defined.
* xpath.c: fix bug #115349 allowing compilation when configured
  with --without-xpath since the Schemas code needs NAN and co.
Daniel
2003-07-05 20:32:43 +00:00
Daniel Veillard
3c908dca47 added xmlMallocAtomic() to be used when allocating blocks which do not
* DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c
  nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c
  xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c
  include/libxml/globals.h include/libxml/xmlmemory.h: added
  xmlMallocAtomic() to be used when allocating blocks which
  do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet()
  to allow registering the full set of functions needed by
  a garbage collecting allocator like libgc, ref #109944
Daniel
2003-04-19 00:07:51 +00:00
Daniel Veillard
c00cda8c06 fixing bug #107129, removing excessive allocation and calls to *printf in
* tree.c valid.c xpath.c include/libxml/tree.h include/libxml/valid.h:
  fixing bug #107129, removing excessive allocation and calls
  to *printf in the code to build QName strings.
Daniel
2003-04-07 10:22:39 +00:00
Daniel Veillard
e209b33055 fixed bug #109160 on non-ASCII IDs Daniel
* xpath.c: fixed bug #109160 on non-ASCII IDs
Daniel
2003-03-26 21:40:13 +00:00
Daniel Veillard
e4fa293265 first part of the fix to performance bug #108905, adds
* xpath.c include/libxml/xpath.h: first part of the fix to
  performance bug #108905, adds xmlXPathOrderDocElems() providing
  document order for nodes.
* python/libxml.c: Python may require TRIO as Albert Chin pointed out
Daniel
2003-03-26 00:38:10 +00:00
Daniel Veillard
9adc0469d4 some changes related to the new way of handling Result Value Tree, before
* tree.c xpath.c: some changes related to the new way of
  handling Result Value Tree, before 2.5.5
Daniel
2003-03-24 18:39:54 +00:00
Daniel Veillard
ef0b450163 fixed some problems related to #75813 about handling of Result Value Trees
* xpath.c: fixed some problems related to #75813 about handling
  of Result Value Trees
Daniel
2003-03-24 13:57:34 +00:00
Daniel Veillard
580ced8ee2 fixed Red Hat bug #86118 use libxml2.spec instead of libxml.spec fixed
* configure.in Makefile.am: fixed Red Hat bug #86118 use libxml2.spec
  instead of libxml.spec
* relaxng.c: fixed some of the error reporting excessive
  verbosity
* catalog.c debugXML.c valid.c xmlreader.c xmlschemas.c xpath.c
  xmlschemastypes.c: removed some warnings from gcc
* doc/libxml2-api.xml: rebuilt
Daniel
2003-03-21 21:22:48 +00:00
Daniel Veillard
edfd588e95 fix bug #107804, the algorithm used for document order computation was
* xpath.c: fix bug #107804, the algorithm used for document order
  computation was failing on attributes.
Daniel
2003-03-07 14:20:40 +00:00
Daniel Veillard
591b4be0fe fixed doc comment problems adding RelaxNG wrappers added a specific test
* xpath.c: fixed doc comment problems
* python/generator.py python/libxml_wrap.h python/types.c: adding
  RelaxNG wrappers
* python/tests/Makefile.am python/tests/relaxng.py: added a specific
  test of those early Python RelaxNG bindings
Daniel
2003-02-09 23:33:36 +00:00
Daniel Veillard
652d8a9494 fixed bug #104817 with delegateURI fixing bugs #104123 and #104125 Daniel
* catalog.c: fixed bug #104817 with delegateURI
* xpath.c: fixing bugs #104123 and #104125
Daniel
2003-02-04 19:28:49 +00:00
Daniel Veillard
71f9d7310c Alexey Efimov pointed out that concat('a', 'b', ) should raise a syntax
* xpath.c: Alexey Efimov pointed out that concat('a', 'b', )
  should raise a syntax error
Daniel
2003-01-14 16:07:16 +00:00