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

2845 Commits

Author SHA1 Message Date
Daniel Veillard
5e094143e4 applied patch from Aron Stansvik to add xmlTextReaderByteConsumed() added
* xmlreader.c include/libxml/xmlreader.h: applied patch from
  Aron Stansvik to add xmlTextReaderByteConsumed()
* testReader.c: added a test option
* xmlschemastypes.c: fix a lack of pointer checking in APIs
Daniel
2005-02-18 19:36:12 +00:00
Kasimier T. Buchcik
0c34776789 Added the regression test of Frans Englich for bug #167754.
* test/schemas/bug167754_0*: Added the regression test of Frans
  Englich for bug #167754.
2005-02-18 11:47:38 +00:00
Kasimier T. Buchcik
ff858ca8e4 Started support for IDC resolution to default attributes. If building the
* xmlschemas.c: Started support for IDC resolution to default
  attributes. If building the content model for <all>: ensured
  to put element declarations and not the particles into the
  content model automaton (this was bug #167754, reported by
  Frans Englich).
2005-02-18 11:37:58 +00:00
Kasimier T. Buchcik
2a0fdd9101 Some experimental addition for parsing of expressions and streamable
* pattern.c pattern.h: Some experimental addition for parsing
  of expressions and streamable validation.
  Added xmlStreamPushAttr to the API.
2005-02-17 21:34:45 +00:00
Kasimier T. Buchcik
b06b4dede2 Added validation for the attribute "id" in the schemata; doing this needed
* xmlschemas.c: Added validation for the attribute "id" in the
  schemata; doing this needed error report fixes for notations,
  facets and group. Changed NOTATION validation to work with the
  declared NOTATIONs in the schema; this does have no impact on
  the validation via the relaxng module.
* xmlschemastypes.c include/libxml/xmlschemastypes.h:
  Added xmlSchemaNewNOTATIONValue to the API to be able to do
  the NOTATION validation described above.
* test/schemas/element-err_0.xsd test/schemas/annot-err_0.xsd:
  Fixed the values of the "id" attributes, which were not validated
  previously.
2005-02-17 19:00:23 +00:00
Kasimier T. Buchcik
6e224f1272 Fixed comparison for default/fixed attribute values, if the type was
* xmlschemas.c: Fixed comparison for default/fixed attribute
  values, if the type was 'xsd:string'. Changed the comparison
  for IDCs to use the whitespace aware comparison function.
* xmlschemastypes.c include/libxml/xmlschemastypes.h:
  Added xmlSchemaGetCanonValue, xmlSchemaNewStringValue and
  xmlSchemaCompareValuesWhtsp to the API. Added functions
  to compare strings with whitespace combinations of "preserve",
  "replace" and "collapse".
2005-02-17 11:10:44 +00:00
Kasimier T. Buchcik
bd2a7d169b Further work on IDCs, especially evaluation for attribute nodes.
* xmlschemas.c: Further work on IDCs, especially evaluation for
  attribute nodes.
2005-02-16 12:27:25 +00:00
Daniel Veillard
56de87ee0d fix the comment to describe the real return values lot of work on the
* encoding.c: fix the comment to describe the real return values
* pattern.c xpath.c include/libxml/pattern.h: lot of work on
  the patterns, pluggin in the XPath default evaluation, but
  disabled right now because it's not yet good enough for XSLT.
  pattern.h streaming API are likely to be changed to handle
  relative and absolute paths in the same expression.
Daniel
2005-02-16 00:22:29 +00:00
Kasimier T. Buchcik
25799cee8d Added IDC evaluation for attribute nodes. Made 'nil'ed elements work.
* xmlschemas.c: Added IDC evaluation for attribute nodes.
  Made 'nil'ed elements work. Added a specific error message
  for 'strict' attribute wildcards.
* include/libxml/xmlerror.h: Added an error code for
  wildcards.
* result/schemas/anyAttr-processContents-err1_0_0.err: Adapted.
2005-02-15 14:39:48 +00:00
William M. Brack
015ccb2c74 This change started out as a simple desire to speed up the
execution time of testapi.c, which was being delayed by
nameserver requests for non-existent URL's.  From there it
just sort of grew, and grew....
* nanohttp.c, nanoftp.c: changed the processing of URL's
  to use the uri.c routines instead of custom code.
* include/libxml/xmlerror.h: added code XML_FTP_URL_SYNTAX
* uri.c: added accepting ipV6 addresses, in accordance with
  RFC's 2732 and 2373 (TODO: allow ipV4 within ipV6)
* gentest.py, testapi.c: fixed a few problems with the
  testing of the nanoftp and nanohttp routines.
* include/libxml/xmlversion.h: minor change to fix a
  warning on the docs generation
* regenerated the docs
2005-02-13 08:18:52 +00:00
William M. Brack
a22da29921 fixed xmlXIncludeParseFile to prevent overwriting XML_COMPLETE_ATTRS when
* xinclude.c: fixed xmlXIncludeParseFile to prevent
  overwriting XML_COMPLETE_ATTRS when setting pctxt->loadsubset
  (bug 166199)
* Makefile.am, python/tests/Makefile.am, xstc/Makefile.am: added
  code to add $(top_builddir)/.libs to LD_LIBRARY_PATH whenever
  PYTHONPATH is set, to assure new libxml2 routines are used.
2005-02-12 01:08:22 +00:00
William M. Brack
3a1cd21df7 fixed problem when no initial "chunk" was given to xmlCreatePushParser
* parser.c: fixed problem when no initial "chunk" was
  given to xmlCreatePushParser (bug 162613)
2005-02-11 14:35:54 +00:00
William M. Brack
4e1c2db89e fixed compilation warning changed xmlWarningMsg so ctxt->errNo is not set
* dict.c: fixed compilation warning
* parser.c: changed xmlWarningMsg so ctxt->errNo is not set
* xmllint.c: changed to return non-zero status if error
  on xinclude processing
* xmlsave.c: minor deletion of a redundant condition statement
2005-02-11 10:58:55 +00:00
Daniel Veillard
b6b36d37f2 applied patch to xmlSetNsProp from Mike Hommey Daniel
* tree.c: applied patch to xmlSetNsProp from Mike Hommey
Daniel
2005-02-09 16:48:53 +00:00
Daniel Veillard
2b2e02d6bb fixed implementation for | added a specific regression test Daniel
* pattern.c xmllint.c: fixed implementation for |
* test/pattern/conj.* result/pattern/conj: added a specific regression
  test
Daniel
2005-02-05 23:20:22 +00:00
Daniel Veillard
f1f08cf8dc first implementation for | support Daniel
* pattern.c: first implementation for | support
Daniel
2005-02-05 16:35:04 +00:00
Daniel Veillard
0996a162c9 fixed the namespaces support fixed xmlGetNodePath when namespaces are used
* pattern.c: fixed the namespaces support
* tree.c: fixed xmlGetNodePath when namespaces are used
* result/pattern/multiple result/pattern/namespaces
  test/pattern/multiple.* test/pattern/namespaces.*: added
  more regression tests
Daniel
2005-02-05 14:00:10 +00:00
Daniel Veillard
e92bf5d6f4 fixed one internal function applied patch from Joel Reed regenerated
* xmlschemas.c: fixed one internal function
* doc/Makefile.am doc/wiki.xsl: applied patch from Joel Reed
* testapi.c doc/libxml2-api.xml doc/libxml2-refs.xml: regenerated
daniel
2005-02-04 17:28:19 +00:00
Daniel Veillard
d4301aba26 use the walker to test the patterns instead of the normal reader bug fixes
* Makefile.am: use the walker to test the patterns instead of
  the normal reader
* pattern.c xmllint.c: bug fixes in the train including fixing the
  stupid build break.
Daniel
2005-02-03 22:24:10 +00:00
Daniel Veillard
364fbed5af Fixed debug in pattern.c, Daniel 2005-02-03 09:08:06 +00:00
Daniel Veillard
9740d1d425 more bug fixes for the XPath streaming code. Daniel
* pattern.c: more bug fixes for the XPath streaming code.
Daniel
2005-02-01 16:21:43 +00:00
Kasimier T. Buchcik
0a5985283b Integrated the streaming pattern from the pattern module. Fixed some IDC
* xmlschemas.c: Integrated the streaming pattern from the
  pattern module. Fixed some IDC code bugs. Changed
  fallback for attribute declaration addition to work like for
  element declarations.
2005-01-31 17:02:07 +00:00
Daniel Veillard
16ef800bd6 bugfixes around the streaming patterns Daniel
* pattern.c xmllint.c: bugfixes around the streaming patterns
Daniel
2005-01-31 00:27:50 +00:00
Daniel Veillard
f9d169142d added first test for the patterns a few fixes Daniel
* Makefile.am configure.in result/pattern/simple
  test/pattern/simple.*: added first test for the patterns
* pattern.c xmllint.c: a few fixes
Daniel
2005-01-30 22:36:30 +00:00
Daniel Veillard
8f2efae484 Oops desabling debug, Daniel 2005-01-30 18:44:30 +00:00
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
48bc062211 oops forgot to add the bakefile, Daniel 2005-01-28 00:08:31 +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