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

3289 Commits

Author SHA1 Message Date
Kasimier T. Buchcik
a930fbec6b Added xmlRelaxNGSetParserStructuredErrors() to the API.
* relaxng.c include/libxml/relaxng.h: Added
  xmlRelaxNGSetParserStructuredErrors() to the API.
2006-01-09 16:28:20 +00:00
Daniel Veillard
a617e24f32 reverted first patches for #319279 which led to #326295 and fixed the
* parser.c: reverted first patches for #319279 which led to #326295
  and fixed the problem in xmlParseChunk() instead
* test/ent11 result//ent11*: added test for #326295 to the regression
  suite
Daniel
2006-01-09 14:38:44 +00:00
Daniel Veillard
6795260135 upated the news regenerated the docs, preparing for release of 2.6.23
* NEWS configure.in libxml.spec.in testapi.c doc/*: upated the news
  regenerated the docs, preparing for release of 2.6.23
* pattern.c xmlschemas.c: fixed some comments
Daniel
2006-01-05 15:29:44 +00:00
Kasimier T. Buchcik
bb2074e8ff Added regression tests for the latest XPath/pattern fixes.
* test/XPath/docs/nodes test/XPath/tests/nodespat
  result/XPath/tests/nodespat: Added regression tests for
  the latest XPath/pattern fixes.
2006-01-05 14:49:40 +00:00
Kasimier T. Buchcik
bb80f544d4 Another fix to handle "foo//.": "foo" was not included in the resulting
* pattern.c: Another fix to handle "foo//.": "foo" was not
  included in the resulting node-set.
2006-01-05 14:44:45 +00:00
Kasimier T. Buchcik
97258713d3 Fixed bug #322928, reported by Erich Schubert: The bug was in pattern.c,
* pattern.c xpath.c include/libxml/pattern.h:
  Fixed bug #322928, reported by Erich Schubert: The bug was
  in pattern.c, which is used for a tiny subset of xpath
  expression which can be evaluated in an optimized way.
  The doc-node was never considered when evaluating "//"
  expressions. Additionally, we fixed resolution
  to nodes of any type in pattern.c; i.e. a "//." didn't work
  yet, as it did select only element-nodes. Due to this
  issue the pushing of nodes in xpath.c needed to be adjusted
  as well.
2006-01-05 12:30:43 +00:00
Daniel Veillard
b20c63a29c tiny refactoring patch from Bjorn Reese Daniel
* parser.c: tiny refactoring patch from Bjorn Reese
Daniel
2006-01-04 17:08:46 +00:00
Daniel Veillard
6977c6c437 fix bug #324432 with <xml:foo/> added to the regression tests Daniel
* SAX2.c: fix bug #324432 with <xml:foo/>
* test/ns7 resul//ns7*: added to the regression tests
Daniel
2006-01-04 14:03:10 +00:00
Daniel Veillard
affb8688da applied patch from Mark Junker, fixing a MinGW compilation problem, should
* include/wsockcompat.h: applied patch from Mark Junker, fixing a
  MinGW compilation problem, should close bug #324943
Daniel
2006-01-04 09:55:16 +00:00
Kasimier T. Buchcik
dfbc33a1f0 Removed last dependency on the obsolete enum xmlSchemaValidError.
* xmlschemas.c: Removed last dependency on the obsolete enum
  xmlSchemaValidError.
2006-01-03 10:51:59 +00:00
Daniel Veillard
d0271473ab compilation and doc build fixes from Michael Day Daniel
* xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation
  and doc build fixes from Michael Day
Daniel
2006-01-02 10:22:02 +00:00
Daniel Veillard
0b1ff14bd0 bug in xmlRegExecPushString2() pointed out by Sreeni Nair. Daniel
* xmlregexp.c: bug in xmlRegExecPushString2() pointed out by
  Sreeni Nair.
Daniel
2005-12-28 21:13:33 +00:00
Daniel Veillard
d95ecf0b8d Fixed xmlStrEqual() doc, Daniel 2005-12-22 14:58:32 +00:00
Rob Richards
77b92ff6a8 fix bug #322136 in xmlNodeBufGetContent when entity ref is a child of an
* tree.c: fix bug #322136 in xmlNodeBufGetContent when entity ref is
  a child of an element (fix by Oleksandr Kononenko).
* HTMLtree.c include/libxml/HTMLtree.h: Add htmlDocDumpMemoryFormat.
2005-12-20 15:55:14 +00:00
Kasimier T. Buchcik
5bb0c08d2f Fixed a segfault during text concatenation when validating a node tree:
* xmlschemas.c xmlstring.c: Fixed a segfault during
  text concatenation when validating a node tree:
  xmlStrncat was called with a @len of -1; but unlike
  xmlStrncatNew, it does not calculate the length
  automatically in such a case (reported by Judy Hay
  on the mailing list).
  Updated the descriptions of the involved string
  functions to note this.
2005-12-20 10:48:33 +00:00
Daniel Veillard
9a2724d847 applied patch from Gary Coady to accept gzipped http resources. Daniel
* nanohttp.c: applied patch from Gary Coady to accept gzipped
  http resources.
Daniel
2005-12-15 11:12:26 +00:00
Kasimier T. Buchcik
4a113f9888 Added enable/disable of runtime debugging (LIBXML_DEBUG_RUNTIME).
* win32/configure.js: Added enable/disable of runtime
  debugging (LIBXML_DEBUG_RUNTIME).
2005-12-14 17:43:03 +00:00
Kasimier T. Buchcik
d81ebd1746 Fixed to define LIBXML_DEBUG_RUNTIME on the basis of @WITH_RUN_DEBUG@.
* include/libxml/xmlversion.h.in: Fixed to define
  LIBXML_DEBUG_RUNTIME on the basis of @WITH_RUN_DEBUG@.
2005-12-14 17:14:35 +00:00
Kasimier T. Buchcik
b0d74c661a Added regression test for bug #321475 (reported by Gabor Nagy). Fixing of
* test/schemas/bug321475* result/schemas/bug321475*:
  Added regression test for bug #321475 (reported by
  Gabor Nagy). Fixing of bug #323510 seemed to have
  fixed this bug as well.
2005-12-13 11:52:35 +00:00
Kasimier T. Buchcik
bd9d91f9dc Adjusted a bug's wrong date-time 2005-12-12 15:34:04 +00:00
Kasimier T. Buchcik
826da468f9 Named the reporter of bug #323510 2005-12-12 15:26:39 +00:00
Kasimier T. Buchcik
183fa3e79a Added regression test for bug #323510.
* test/schemas/bug323510* result/schemas/bug323510*:
  Added regression test for bug #323510.
2005-12-12 15:20:28 +00:00
Kasimier T. Buchcik
7ca5aedfc3 Workaround for bug #323510: substituted the epsilon transition for a
* xmlschemas.c: Workaround for bug #323510: substituted the
  epsilon transition for a labelled transition, in order to
  avoid a bug in xmlregexp.c which eliminated the epsilon
  transition and marked the initial state as final.
2005-12-12 15:13:40 +00:00
Daniel Veillard
bc4cc9da77 Gary Coady pointed a memory leak in xmlTextReaderReadInnerXml() applied
* xmlreader.c: Gary Coady pointed a memory leak in
  xmlTextReaderReadInnerXml() applied patch fixing #323864
Daniel
2005-12-12 13:26:56 +00:00
Daniel Veillard
6a0baa0cd8 fixed a number of warnings shown by HP-UX compiler and reported by Rick
* HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c
  testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number
  of warnings shown by HP-UX compiler and reported by Rick Jones
Daniel
2005-12-10 11:11:12 +00:00
Rob Richards
ffe47feb27 Insert space between pubid and sysid when both passed to
* xmlwriter.c: Insert space between pubid and sysid when both
  passed to xmlTextWriterStartDTD and indenting not being used.
  Remove no longer used Mem callbacks.
2005-12-09 17:52:21 +00:00
Kasimier T. Buchcik
dcac4fce1d Changed to instantly mark instance-tests as failed if the corresponding
* runsuite.c: Changed to instantly mark instance-tests as
  failed if the corresponding schema was invalid. This
  reflects the side of the Python code for the XML Schema test
  suite. We now get the same number of failed tests on both
  sides.
2005-12-09 10:03:27 +00:00
Kasimier T. Buchcik
bdadaedd88 Added xmlTextReaderSchemaValidateCtxt() to the API.
* xmlreader.c include/libxml/xmlreader.h: Added
  xmlTextReaderSchemaValidateCtxt() to the API.
2005-12-07 14:02:42 +00:00
Kasimier T. Buchcik
215406f089 Fixed a segfault: the instance document was still tried to be validated,
* xmlschemas.c: Fixed a segfault: the instance document was
  still tried to be validated, if the schema, dynamically
  acquired using XSI was invalid, thus mangled. The
  validation will stop (or rather won't validate) now in
  such a case. The schema parser error code will be set
  on the validion context now; this is somehow not nice,
  but it assures that the validation context indicates an
  error in there was a parser error.
2005-12-07 12:14:09 +00:00
Daniel Veillard
42ca673492 small doc patch from Aron Stansvik another doc patch for a deprecated API
* xmlreader.c: small doc patch from Aron Stansvik
* legacy.c: another doc patch for a deprecated API
Daniel
2005-12-06 22:21:46 +00:00
Kasimier T. Buchcik
27759f2670 Tiny change for 'make tests': raised the number of expected failures for
* Makefile.am: Tiny change for 'make tests': raised
  the number of expected failures for James Clark's
  XML Schema datatype tests from 10 to 11. The additional
  reported error was agreed to be correct long time ago,
  but we missed to adjust the message reported by
  the testing script.
2005-12-05 15:32:28 +00:00
Kasimier T. Buchcik
7c78215b14 Added missing regression test results for the latest IDC and xs:decimal
* result/schemas/decimal* result/schemas/bug322411*:
  Added missing regression test results for the latest IDC
  and xs:decimal bugs.
2005-12-02 12:52:47 +00:00
Kasimier T. Buchcik
bf442eb243 Added regression tests for the latest IDC and xs:decimal bugs.
* test/schemas/decimal* test/schemas/bug322411*: Added
  regression tests for the latest IDC and xs:decimal bugs.
2005-11-30 11:24:18 +00:00
Kasimier T. Buchcik
f39e8d1f05 Fixed bubbling of duplicate IDC nodes: the parent's list of duplicates was
* xmlschemas.c: Fixed bubbling of duplicate IDC nodes: the
  parent's list of duplicates was filled with NULLs instead
  of the nodes under certain conditions. This lead to a
  segfault when the list's entries were accessed.
2005-11-30 11:03:24 +00:00
Kasimier T. Buchcik
72f50c18d9 Fixed parsing of xs:decimal to allow/deny special lexical forms. Fixed the
* xmlschemastypes.c: Fixed parsing of xs:decimal to
  allow/deny special lexical forms. Fixed the totalDigits
  for values in the range (x < 1) &&  (x > -1) && (x != 0);
  E.g "0.123" has now a totalDigits of 3 (was 4 previously).
  Adjusted the comparison function for decimals due to this
  change. As a side effect comparison against zeroes was
  optimized.
2005-11-28 16:36:30 +00:00
Kasimier T. Buchcik
132ba5f5da An assignment to a local variable, which was used to access the IDC node
* xmlschemas.c: An assignment to a local variable, which was
  used to access the IDC node list, was missing after the
  reallocation of the list (reported by Fabrice GUY
  bug #322411). Renamed the define ENABLE_IDC_NODE_TABLES
  to ENABLE_IDC_NODE_TABLES_TEST and *disabled* it, since
  it is used to force bubbling of IDC node tables even
  if not necessary; this was intended to be used for test
  purposes, but I obviously missed to disable it (although
  it apparently helped finding the bug).
2005-11-28 12:32:24 +00:00
Kasimier T. Buchcik
81755ea6c4 In xmlSchemaAssembleByXSI() the return value of xmlSchemaGetMetaAttrInfo()
* xmlschemas.c: In xmlSchemaAssembleByXSI() the return value
  of xmlSchemaGetMetaAttrInfo() was not assigned to anything;
  this caused XSI-driven-dynamic schema acquisition to fail
  with @noNamespaceSchemaLocation (reported by Julien Lamy
  on the mailing list).
2005-11-23 16:39:27 +00:00
Kasimier T. Buchcik
5d2998be54 Fixed a bug in xmlSchemaFindRedefCompInGraph() which caused the search for
* xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph()
  which caused the search for components to stop at the
  first encountered attribute group component.
  Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the
  designation of a not-found component was not reported.
2005-11-22 17:36:01 +00:00
Daniel Veillard
5e9576a492 Albert Chin found another signed/unsigned problem in the date and time
* xmlschemastypes.c: Albert Chin found another signed/unsigned problem
  in the date and time code raised on IRIX 6.5
Daniel
2005-11-21 11:23:47 +00:00
Kasimier T. Buchcik
90b5ebc0f3 Added xmlSchemaSetParserStructuredErrors() to the API. Fixed channeling of
* xmlschemas.c include/libxml/xmlschemas.h:
  Added xmlSchemaSetParserStructuredErrors() to the API.
  Fixed channeling of error relevant information to
  subsequent parser/validation contexts.
2005-11-18 17:18:27 +00:00
Daniel Veillard
c19d535e5e removed unreachable code pointed out by Oleksandr Kononenko, fixes bug
* parserInternals.c: removed unreachable code pointed out by
  Oleksandr Kononenko, fixes bug #321695
Daniel
2005-11-17 13:12:16 +00:00
Daniel Veillard
ae487ba020 use ctxt->standalone = -2 to indicate that the XMLDecl was parsed but no
* parser.c: use ctxt->standalone = -2 to indicate that the
  XMLDecl was parsed but no standalone attribute was found,
  suggested by Michael Day to detect if an XMLDecl was found.
Daniel
2005-11-17 07:25:52 +00:00
Daniel Veillard
93e577f1a1 Hisashi Fujinaka pointed that errors in Schemas tests were not properly
* runtest.c: Hisashi Fujinaka pointed that errors in Schemas tests
  were not properly reported.
Daniel
2005-11-15 08:50:04 +00:00
Daniel Veillard
4d3866cf33 applied patch from Geert Jansen to remove xmlBufferClose() which is not
* xmlIO.c: applied patch from Geert Jansen to remove xmlBufferClose()
  which is not needed.
Daniel
2005-11-13 12:43:59 +00:00
Kasimier T. Buchcik
77e76829b6 Changed xmlSchemaFormatIDCKeySequence() to use
* xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence()
  to use xmlSchemaGetCanonValueWhtspExt() in order to
  correctly report values for xs:anySimpleType.
* test/schemas/idc-keyref-err1*
  result/schemas/idc-keyref-err1*: Added a test for this change.
2005-11-11 12:52:32 +00:00
Rob Richards
a44f234d3a function consolidation when writing to xmlBuffer. Return error condition
* xmlIO.c xmlwriter.c: function consolidation when writing to xmlBuffer.
  Return error condition not len if xmlwriter fails writing to buffer.
2005-11-09 18:03:45 +00:00
Daniel Veillard
9a00fd2991 applied patch from Geert Jansen to implement the save function to a
* xmlsave.c xmlIO.c include/libxml/xmlIO.h include/libxml/xmlsave.h:
  applied patch from Geert Jansen to implement the save function to
  a xmlBuffer, and a bit of cleanup.
Daniel
2005-11-09 08:56:26 +00:00
Kasimier T. Buchcik
69dea3a0c0 Fixed the type of the totalDigits value to be positiveInteger. Fixed crash
* xmlschemas.c xmlschemastypes.c: Fixed the type of the
  totalDigits value to be positiveInteger.
  Fixed crash in an error report function when we gave it
  the document node; only element and attribute nodes are
  processed now (reported by Rob Richards).
2005-11-07 14:02:44 +00:00
Daniel Veillard
fc6eca0d81 fix bug #319897, problem with counted atoms when the transition itself is
* xmlregexp.c: fix bug #319897, problem with counted atoms
  when the transition itself is counted too
* result/regexp/hard test/regexp/hard: augmented the regression
  tests with the problem exposed.
Daniel
2005-11-01 15:24:02 +00:00
Daniel Veillard
3d6aa10d8c applied patch from Mark Junker to fix compilation with MinGW Daniel
* win32/Makefile.mingw include/win32config.h: applied patch from
  Mark Junker to fix compilation with MinGW
Daniel
2005-11-01 10:55:24 +00:00