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

3218 Commits

Author SHA1 Message Date
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
Daniel Veillard
f93a67e9c9 tiny fix from Albert Chin portability cleanup for arch needing trio for
* libxml.3: tiny fix from Albert Chin
* runsuite.c runtest.c testapi.c: portability cleanup for arch
  needing trio for *printf
Daniel
2005-10-28 16:37:05 +00:00
Rob Richards
19dc961ec1 add additional checks to prevent tree corruption. fix problem copying
* tree.c: add additional checks to prevent tree corruption. fix problem
  copying attribute using xmlDocCopyNode from one document to another.
2005-10-28 16:15:16 +00:00
Daniel Veillard
d4e39ae2c1 cleanup from Albert Chin html/index.sgml doesn't exist anymore Daniel
* config.h.in configure.in vms/config.vms macos/src/config-mac.h:
  cleanup from Albert Chin
* doc/Makefile.am: html/index.sgml doesn't exist anymore
Daniel
2005-10-28 15:59:14 +00:00
Daniel Veillard
9b693b489d more portability patches from Albert Chin for HP-UX and AIX Daniel
* xmlIO.c xmlmodule.c: more portability patches from Albert Chin for
  HP-UX and AIX
Daniel
2005-10-28 14:54:17 +00:00
Daniel Veillard
1d96f5aa97 applied 2 patches from Albert Chin for module portability Daniel
* xmlmodule.c configure.in: applied 2 patches from Albert Chin for
  module portability
Daniel
2005-10-28 08:44:48 +00:00
Daniel Veillard
dbf7bfed8a fixing a portability problem on some old Unices with patch from Albert
* error.c: fixing a portability problem on some old Unices with
  patch from Albert Chin
Daniel
2005-10-28 08:25:51 +00:00
Aleksey Sanin
b2eabc0c44 fixed bug in exc-c14n namespace visibility + test case 319367(bug #319367) 2005-10-28 03:15:18 +00:00
Daniel Veillard
eaccdc6554 remove warnings to stdout patch from Nic Ferrier Daniel
* python/libxml.py: remove warnings to stdout patch from Nic Ferrier
Daniel
2005-10-27 14:10:52 +00:00
Daniel Veillard
7802ba56ff avoid function parameters names 'list' as this seems to give troubles with
* valid.c xmlregexp.c include/libxml/valid.h
  include/libxml/xmlregexp.h: avoid function parameters names 'list'
  as this seems to give troubles with VC6 and stl as reported by
  Samuel Diaz Garcia.
Daniel
2005-10-27 11:56:20 +00:00
Daniel Veillard
6e84bb28dd fix a problem in some error case on Solaris when passed a NULL filename,
* parserInternals.c: fix a problem in some error case on Solaris
  when passed a NULL filename, pointed by Albert Chin.
Daniel
2005-10-26 09:00:29 +00:00
Daniel Veillard
b990008f05 script HTML parser error fix, corrects bug #319715 added test from Michael
* HTMLparser.c: script HTML parser error fix, corrects bug #319715
* result/HTML/53867* test/HTML/53867.html: added test from Michael Day
  to the regression suite
Daniel
2005-10-25 12:36:29 +00:00
Daniel Veillard
2cf36a1cc1 typo fix from Michael Day Daniel
* HTMLparser.c: typo fix from Michael Day
Daniel
2005-10-25 12:21:29 +00:00
Rob Richards
c342ec6d6d fix issue adding non-namespaced attributes in xmlAddChild(),
* tree.c: fix issue adding non-namespaced attributes in xmlAddChild(),
  xmlAddNextSibling() and xmlAddPrevSibling() (bug #319108) - part 1.
2005-10-25 00:10:12 +00:00
William M. Brack
dc904f1f81 fixed second spot where CRLF split between chunks could cause trouble (bug
* parser.c: fixed second spot where CRLF split between chunks
  could cause trouble (bug #319279)
* gentest.py, testapi.c: fixed two problems involved with
  --with-minimum compilation (compilation errors with schematron
  and formal expressions tests)
2005-10-22 02:04:26 +00:00
Rob Richards
2e2691b51c prevent output of fragment tags when serializing XHTML.
* xmlsave.c: prevent output of fragment tags when serializing XHTML.
2005-10-21 14:45:16 +00:00
Daniel Veillard
aa62201290 commiting a some fixes and debug done yesterday in the London airport.
* xmlregexp.c: commiting a some fixes and debug done yesterday in
  the London airport.
Daniel
2005-10-20 15:55:25 +00:00
Kasimier T. Buchcik
f326e77cb1 Removed creation of a temporary parser context during validation when
* xmlschemas.c: Removed creation of a temporary parser context
  during validation when processing xsi:type; this previously
  added a string to the dict of the schema - to assure thread
  safety, we don't want to modify a given schema during
  validation.
2005-10-20 11:06:00 +00:00
William M. Brack
f4caa5e698 fixed problem in xmlTextWriterVSprintf caused by misuse of vsnprintf added
* xmlwriter.c: fixed problem in xmlTextWriterVSprintf caused by
  misuse of vsnprintf
* configure.in, config.h.in: added a configuration check for
  va_copy and added a define for VA_COPY for xmlwriter.c fix
* parser.c: fixed problem with CRLF split between chunks (bug
  #319279) (fix provided by Brion Vibber)
2005-10-20 09:04:05 +00:00
Kasimier T. Buchcik
940ab0c676 Fixed a potential memory leak in xmlSchemaCheckCSelectorXPath() when an
* xmlschemas.c: Fixed a potential memory leak in
  xmlSchemaCheckCSelectorXPath() when an internal error occurs.
  Fixed setting of ctxt->err to the given error code in
  the parsing error functions.
* pattern.c: Added internal xmlCompileIDCXPathPath() as a
  starting point for IDC XPath compilation; this and some other
  tiny changes fixes issues regarding whitespace in the
  expressions and IDC selector/field relevant restrictions of
  the subset of XPath. Fixed a missing blocking of attributes
  in xmlStreamPushInternal().
2005-10-19 17:00:53 +00:00
Daniel Veillard
567a45b5e9 removed the error message removed 2 instability warnings from function
* runtest.c: removed the error message
* relaxng.c xmlschemas.c: removed 2 instability warnings from function
  documentation
* include/libxml/schemasInternals.h: changed warning about API stability
* xmlregexp.c: trying to improve runtime execution of non-deterministic
  regexps and automata. Not fully finished but should be way better.
Daniel
2005-10-18 19:11:55 +00:00
Kasimier T. Buchcik
ee8e8ae963 Fixed a memory leak in xmlSchemaContentModelDump(). Added output of local
* xmlschemas.c: Fixed a memory leak in
  xmlSchemaContentModelDump(). Added output of local types
  in xmlSchemaElementDump(). Tiny cosmetical changes to the
  dump output.
2005-10-17 14:15:37 +00:00