1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-13 20:58:16 +03:00

2479 Commits

Author SHA1 Message Date
Daniel Veillard
2fc6df95cc added a streaming pattern detector for a subset of XPath, should help
* pattern.c include/libxml/pattern.h xmllint.c: added a
  streaming pattern detector for a subset of XPath, should
  help Kasimier for identity constraints
* python/generator.py: applied Stephane Bidoul patch to find
  paths without breaking.
Daniel
2005-01-30 18:42:55 +00:00
Daniel Veillard
d3210bc8a3 fixed an untested pointer dereference and a & vs && Daniel
* xmlschemas.c: fixed an untested pointer dereference and a & vs &&
Daniel
2005-01-28 17:56:39 +00:00
Daniel Veillard
e125b3163b implementation of xmlTextReaderReadString by Bjorn Reese Daniel
* xmlreader.c: implementation of xmlTextReaderReadString by
  Bjorn Reese
Daniel
2005-01-28 17:39:49 +00:00
Kasimier T. Buchcik
87250a97a3 Corrected an ambigious symbol-space for local attribute declarations.
* xmlschemas.c: Corrected an ambigious symbol-space for
  local attribute declarations. IFDEFed more IDC code to
  surpress compiler warnings.


* xmlschemas.c: tiny enhancement for content model error reports
  (#157190, #143948). Removed abbreviations: CT, ST and WC
  (#157190, reported by Frans  Englich).
* result/schemas/all* result/schemas/any3_0_0.err
  result/schemas/choice*
  result/schemas/cos-st-restricts-1-2-err_0_0.err
  result/schemas/derivation-ok-extension-err_0_0.err
  result/schemas/derivation-ok-extension_0_0.err
  result/schemas/derivation-ok-restriction-2-1-1_0_0.err
  result/schemas/derivation-ok-restriction-4-1-err_0_0.err
  result/schemas/deter0_0_0.err result/schemas/extension1_0_2.err
  result/schemas/facet-unionST-err1_0_0.err
  result/schemas/hexbinary_0_1.err
  result/schemas/list* result/schemas/restriction-attr1_0_0.err
  result/schemas/vdv-first4_0_1.err result/schemas/vdv-first4_0_2.err:
  Adapted output.
  xmlSchemaTypeFixup; this ensures facets of inherited types to be
  checked prior to facets of derived types - which caused a seg
  fault otherwise (bug #158216, reported by Frans Englich).
2005-01-28 15:59:53 +00:00
Daniel Veillard
5351695d1b files for the Bakefile generator for Makefiles from Francesco Montorsi
* bakefile/Readme.txt bakefile/Bakefiles.bkgen bakefile/libxml2.bkl:
  files for the Bakefile generator for Makefiles from Francesco
  Montorsi
* win32/configure.js: fixes for Windows compilation with non-default
  flags by Joel Reed
Daniel
2005-01-27 23:59:14 +00:00
Daniel Veillard
f59507d428 fixed xmlCopyDoc to also copy the doc->URL as pointed by Martijn Faassen
* tree.c: fixed xmlCopyDoc to also copy the doc->URL as pointed
  by Martijn Faassen
Daniel
2005-01-27 17:26:49 +00:00
Kasimier T. Buchcik
e8a550b392 Added an initial skeleton for indentity-constraints. This is all defined
* xmlschemas.c include/libxml/schemasInternals.h:
  Added an initial skeleton for indentity-constraints. This is all
  defined out, since not complete, plus it needs support from other
  modules.
  Added machanism to store element information for the
  ancestor-or-self axis; this is needed for identity-constraints
  and should be helpfull for a future streamable validation.
* include/libxml/xmlerror.h: Added an error code for
  identity-constraints.
2005-01-27 12:49:31 +00:00
Daniel Veillard
c394f73476 had to fix generation and rebuild. the testapi found a bug in the last
* gentest.py testapi.c: had to fix generation and rebuild.
* valid.c: the testapi found a bug in the last code of course !
Daniel
2005-01-26 00:04:52 +00:00
Daniel Veillard
2ae13382c3 fixing the way testapi.c is generated, fixes bug #161386 fix a comment
* Makefile.am testapi.c doc/Makefile.am: fixing the way testapi.c
  is generated, fixes bug #161386
* dict.c: fix a comment typo
* elfgcchack.h doc/*: regenerated
Daniel
2005-01-25 23:45:06 +00:00
Daniel Veillard
8f8a9dd7f1 found and fixed 2 problems in the internal subset scanning code affecting
* parser.c: found and fixed 2 problems in the internal subset scanning
  code affecting the push parser (and the reader), fixes #165126
* test/intsubset2.xml result//intsubset2.xml*: added the test case
  to the regression tests.
Daniel
2005-01-25 21:41:42 +00:00
Daniel Veillard
cee2b3a5f1 warning patches from Peter Breitenlohner serious DTD parsing speedups,
* testdso.c xmlregexp.c: warning patches from Peter Breitenlohner
* include/libxml/valid.h valid.c parser.c: serious DTD parsing
  speedups, start to deprecate 3 ElementDef related entry point
  and replace them with better ones.
Daniel
2005-01-25 00:22:52 +00:00
Daniel Veillard
b9e2f26ed6 more hash dictionary interning changes Daniel
* xmlschemas.c: more hash dictionary interning changes
Daniel
2005-01-23 23:48:34 +00:00
Daniel Veillard
316a5c3989 added xmlHashCreateDict where the hash reuses the dictionnary for internal
* hash.c include/libxml/hash.h: added xmlHashCreateDict where
  the hash reuses the dictionnary for internal strings
* entities.c valid.c parser.c: reuse that new API, leads to a decent
  speedup when parsing for example DocBook documents.
Daniel
2005-01-23 22:56:39 +00:00
Daniel Veillard
7da92709c8 small speedup in skipping blanks characters interning the entities strings
* parser.c: small speedup in skipping blanks characters
* entities.c: interning the entities strings
Daniel
2005-01-23 20:15:53 +00:00
Daniel Veillard
4c778d8b96 boosting common commnent parsing code, it was really slow. added sprecific
* parser.c: boosting common commnent parsing code, it was really
  slow.
* test/comment[3-5].xml result//comment[3-5].xml*: added sprecific
  regression tests
Daniel
2005-01-23 17:37:44 +00:00
Daniel Veillard
0714c5bfdf small optimization back. Daniel
* parser.c: small optimization back.
Daniel
2005-01-23 00:01:01 +00:00
Daniel Veillard
1441251f85 a single lock version mostly avoid the cost penalty of the lock in case of
* dict.c parser.c include/libxml/dict.h: a single lock version
  mostly avoid the cost penalty of the lock in case of low
  parallelism, so applying that version instead.
Daniel
2005-01-21 23:53:26 +00:00
Daniel Veillard
1bb16a1888 patch from Gary Coady to fix a race in dict reference counting in
* dict.c: patch from Gary Coady to fix a race in dict reference
  counting in multithreaded apps.
Daniel
2005-01-21 16:55:41 +00:00
Daniel Veillard
b8590d4c1a fixed bug #164556 where non-fatal errors stopped push parsing and
* parser.c: fixed bug #164556 where non-fatal errors stopped
  push parsing and xmlreader.
* Makefile.am: fixup
* test/errors/webdav.xml result/errors/webdav*: adding regression
  test for this problem.
Daniel
2005-01-21 15:10:23 +00:00
Kasimier T. Buchcik
f500aec549 Corrected targetNamespace in xmlSchemaElementDump. Cosmetic changes to the
* xmlschemas.c: Corrected targetNamespace in
  xmlSchemaElementDump. Cosmetic changes to the dump output.
2005-01-19 16:30:24 +00:00
Daniel Veillard
298d964078 preparing release of 2.6.17, updated and rebuilt the docs Daniel
* configure.in NEWS doc/*: preparing release of 2.6.17,
  updated and rebuilt the docs
Daniel
2005-01-16 20:01:55 +00:00
Daniel Veillard
df292f7aa9 better fix for #151694 not killing c14n regression tests fixing bug
* parser.c: better fix for #151694 not killing c14n regression tests
* xmlschemastypes.c: fixing bug #157653
Daniel
2005-01-16 19:00:15 +00:00
Daniel Veillard
e3740edc1c fixing bug #151694, line should always be set in the elements. Daniel
* parser.c: fixing bug #151694, line should always be set in the
  elements.
Daniel
2005-01-16 18:02:13 +00:00
Daniel Veillard
6fc5db0090 trying to fix at least the message from bug #158628 added first xmlsave
* xmlschemastypes.c: trying to fix at least the message from
  bug #158628
* include/libxml/xmlsave.h xmlsave.c: added first xmlsave option
  for format, c.f. bug #159997
Daniel
2005-01-16 00:05:58 +00:00
Daniel Veillard
1cd4dae166 make __str__ call serialize() on nodes, c.f. bug #157872 Daniel
* python/libxml.py: make __str__ call serialize() on nodes, c.f.
  bug #157872
Daniel
2005-01-15 17:45:28 +00:00
Daniel Veillard
db439254cf applied patch from Dan McNichol for compilation on AIX Daniel
* nanoftp.c: applied patch from Dan McNichol for compilation on AIX
Daniel
2005-01-15 17:18:53 +00:00
Daniel Veillard
9186a1fdb6 fixed bug #157633 in relaxng choice optimization added regression tests
* relaxng.c: fixed bug #157633 in relaxng choice optimization
* result/relaxng/choice0* test/relaxng/choice0*: added regression
  tests about it.
* doc/*: rebuilt
* testdso.c: removed a warning due to a missing void in signature.
Daniel
2005-01-15 12:38:10 +00:00
Kasimier T. Buchcik
31113c7e86 Exposed targetNamespace for simple/complex types, model groups, attribute
* include/libxml/schemasInternals.h xmlschemas.c:
  Exposed targetNamespace for simple/complex types, model groups,
  attribute groups and notations (reported by Michael Hewarth
  to the mailing list). Added targetNamespace to xmlSchemaType,
  xmlSchemaAttributeGroup and xmlSchemaNotation.
  Tiny cosmetic change to the content model error report output.
* result//all_*.err result//any3_0_0.err result//choice_*.err
  result//list0_0_1.err result//list0_1_1.err: Adapted output
  of regression tests.
2005-01-13 16:57:20 +00:00
Kasimier T. Buchcik
de938cd4d7 Put the fix of Daniel (from Tue Jan 11 14:41:47 CET) back in, since I
* xmlschemas.c: Put the fix of Daniel (from Tue Jan 11 14:41:47 CET)
  back in, since I missed to update xmlschemas.c before doing
  the previous commit.
2005-01-13 12:25:57 +00:00
Kasimier T. Buchcik
c3af19d1f7 Integrated xmlRegExecErrInfo and xmlRegExecNextValues from xmlregexp.c to
* xmlschemas.c: Integrated xmlRegExecErrInfo and xmlRegExecNextValues
  from xmlregexp.c to report expected elements on content model errors.
* all_*.err any3_0_0.err choice_*.err list0_0_1.err list0_1_1.err:
  Adapted output of regression tests.
2005-01-13 12:10:11 +00:00
Daniel Veillard
dcd939032f trying to work around the compilation problem on HP-UX Daniel
* config.h.in configure.in xmlmodule.c: trying to work around
  the compilation problem on HP-UX
Daniel
2005-01-13 11:25:15 +00:00
Daniel Veillard
c7c9fb19a4 fixed the fixed size array structure problem reported by Patrick Streule
* pattern.c: fixed the fixed size array structure problem reported by
  Patrick Streule
Daniel
2005-01-12 21:04:15 +00:00
Daniel Veillard
f47d2e3237 regenerated the API description, rebuilt, improved navigation in
* elfgcchack.h testapi.c doc/libxml2-api.xml doc/*: regenerated
  the API description, rebuilt, improved navigation in documentation
  a bit.
Daniel
2005-01-12 14:16:08 +00:00
Daniel Veillard
cc026dc6b0 extended xmlRegExecErrInfo() and xmlRegExecNextValues() to return error
* include/libxml/xmlregexp.h xmlregexp.c: extended xmlRegExecErrInfo()
  and xmlRegExecNextValues() to return error transition strings too,
  and sink state detection and handling.
Daniel
2005-01-12 13:21:17 +00:00
Daniel Veillard
618732b607 fixed bug #163641 when the value passed for an atomic list type is NULL.
* xmlschemas.c: fixed bug #163641 when the value passed for
  an atomic list type is NULL.
Daniel
2005-01-11 13:43:13 +00:00
William M. Brack
a73f45b62d fixed dependency on python 2.3, also small improvement for cygwin (bug
* Makefile.am configure.in: fixed dependency on python 2.3,
  also small improvement for cygwin (bug 163273)
2005-01-11 02:21:33 +00:00
Daniel Veillard
fc0b6f6ada William noticed I forgot to add special support for xmlmodules.c define
* gentest.py testapi.c: William noticed I forgot to add special
  support for xmlmodules.c define
* xmlregexp.c include/libxml/xmlregexp.h: added terminal to
  xmlRegExecErrInfo() API, adding new xmlRegExecNextValues()
  entry point and refactored to use both code.
Daniel
2005-01-09 17:48:02 +00:00
William M. Brack
99906ada06 added an FAQ under Developer for setting up a "private" library (after
* doc/xml.html, doc/FAQ.html: added an FAQ under Developer for
  setting up a "private" library (after some list posts about
  people having trouble doing it)
2005-01-09 17:02:42 +00:00
Daniel Veillard
9070015b40 fixing behaviour for xmlRegExecErrInfo in case of rollback Daniel
* xmlregexp.c: fixing behaviour for xmlRegExecErrInfo in case of
  rollback
Daniel
2005-01-08 22:05:09 +00:00
Daniel Veillard
7bd8b4b817 small update trying to add an API to get useful error informations back
* TODO: small update
* xmlregexp.c: trying to add an API to get useful error informations
  back from a failing regexp context.
Daniel
2005-01-07 13:56:19 +00:00
William M. Brack
cd65bc9a49 fixed problem with xmlXPathErr when error number subscript was out of
* xpath.c: fixed problem with xmlXPathErr when error number
  subscript was out of range (bug 163055)
2005-01-06 09:39:18 +00:00
William M. Brack
f3cf1a1e18 fixed problem with xmlURIEscape when query part was empty (actually fixed
* uri.c: fixed problem with xmlURIEscape when query part was
  empty (actually fixed xmlURIEscapeStr to return an empty
  string rather than NULL for empty string input) (bug 163079)
2005-01-06 02:25:59 +00:00
Aleksey Sanin
8fdc32abfe fixing col information in xmlParserInput and propagating column into xmlError 2005-01-05 15:37:55 +00:00
Daniel Veillard
48df9613ba fixed namespace bug in push mode reported by Rob Richards added it to the
* parser.c: fixed namespace bug in push mode reported by
  Rob Richards
* test/ns6 result//ns6*: added it to the regression tests
* xmlmodule.c testModule.c include/libxml/xmlmodule.h:
  added an extra option argument to module opening and defined
  a couple of flags to the API.
Daniel
2005-01-04 21:50:05 +00:00
Daniel Veillard
be076e9b06 applied patch from Bjorn Reese, plus some cleanups fixed the stylesheet to
* xmlmodule.c include/libxml/xmlmodule.h: applied patch from
  Bjorn Reese, plus some cleanups
* elfgcchack.h doc/elfgcchack.xsl: fixed the stylesheet to
  add the new header
* doc/* testapi.c: regenerated the API
Daniel
2005-01-04 20:18:14 +00:00
Daniel Veillard
f6b71bd176 making DSO support an option code and documentation cleanups regenerated
* configure.in: making DSO support an option
* xmlmodule.c xmlreader.c include/libxml/xmlmodule.h: code
  and documentation cleanups
* elfgcchack.h testapi.c doc/*: regenerated the docs and
  checks for new module
* test/valid/REC-xml-19980210.xml: fix a small change introduced
  previously
Daniel
2005-01-04 17:50:14 +00:00
Daniel Veillard
ce1648b124 applied DSO support patch 2 from Joel Reed Daniel
* Makefile.am config.h.in configure.in error.c libxml-2.0.pc.in
  testModule.c testdso.c xml2-config.in xmllint.c xmlmodule.c
  include/libxml/Makefile.am include/libxml/xmlerror.h
  include/libxml/xmlmodule.h include/libxml/xmlversion.h.in
  include/libxml/xmlwin32version.h.in: applied DSO support
  patch 2 from Joel Reed
Daniel
2005-01-04 15:10:22 +00:00
Daniel Veillard
7a3447a592 applied patch from Marcin Konicki for BeOS Daniel
* configure.in: applied patch from Marcin Konicki for BeOS
Daniel
2005-01-04 14:31:14 +00:00
Aleksey Sanin
d671e2863e GetLineNumber and GetColumnNumber functions for xmlReader 2005-01-03 21:58:59 +00:00
William M. Brack
21e4ef20f6 Re-examined the problems of configuring a "minimal" library.
Synchronized the header files with the library code in order
to assure that all the various conditionals (LIBXML_xxxx_ENABLED)
were the same in both.  Modified the API database content to more
accurately reflect the conditionals.  Enhanced the generation
of that database.  Although there was no substantial change to
any of the library code's logic, a large number of files were
modified to achieve the above, and the configuration script
was enhanced to do some automatic enabling of features (e.g.
--with-xinclude forces --with-xpath).  Additionally, all the format
errors discovered by apibuild.py were corrected.
* configure.in: enhanced cross-checking of options
* doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml,
  doc/libxml2-api.xml, gentest.py: changed the usage of the
  <cond> element in module descriptions
* elfgcchack.h, testapi.c: regenerated with proper conditionals
* HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c,
  testSAX.c: cleaned up conditionals
* include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h,
  hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h,
  valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]:
  synchronized the conditionals with the corresponding module code
* doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c:
  added additional conditions required for compilation
* doc/*.html, doc/html/*.html: rebuilt the docs
2005-01-02 09:53:13 +00:00