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

3101 Commits

Author SHA1 Message Date
Daniel Veillard
4f917e2416 applied patch from Kuba Nowakowski fixing bug #313982 also added the test
* xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug
  #313982
* result/schemas/bug313982* test/schemas/bug313982*: also added
  the test case to the regression suite.
Daniel
2005-08-22 16:01:43 +00:00
Daniel Veillard
a4181227e9 printed the wrong string Daniel
* testRegexp.c: printed the wrong string
Daniel
2005-08-22 15:50:57 +00:00
Daniel Veillard
0090bd524f exported xmlExpExpDerive(), added it to the testRegexp command line tool
* testRegexp.c xmlregexp.c include/libxml/xmlregexp.h: exported
  xmlExpExpDerive(), added it to the testRegexp command line
  tool when providing multiple expressions.
Daniel
2005-08-22 14:43:43 +00:00
Daniel Veillard
355a023866 added the first regression test suite set for the new expression support
* Makefile.am result/expr/base test/expr/base: added the first
  regression test suite set for the new expression support
Daniel
2005-08-22 12:58:05 +00:00
Daniel Veillard
465a000b10 fixed an uninitialized variable extended the API to add the parser,
* valid.c: fixed an uninitialized variable
* xmlregexp.c include/libxml/xmlregexp.h: extended the API to
  add the parser, serializer and some debugging
* include/libxml/xmlversion.h.in: made the new support compiled
  by default if Schemas is included
* testRegexp.c: cleanup and integration of the first part of the
  new code with a special switch
* xmllint.c: show up Expr in --version if compiled in
* include/libxml/tree.h: moved the xmlBuffer definition up
Daniel
2005-08-22 12:07:04 +00:00
Kasimier T. Buchcik
630215baf8 Some preparation for the creation of a graph of
* xmlschemas.c: Some preparation for the creation of a graph
  of imported/included/redefined schemas; this is needed for
  at least the redefinitions.
  Centralized the creation of the parser context in one function.
2005-08-22 10:15:39 +00:00
Daniel Veillard
81a8ec6b13 pushing the formal expression handling code to have it in CVs from now.
* xmlregexp.c include/libxml/xmlregexp.h: pushing the formal expression
  handling code to have it in CVs from now. Not plugged, and misses
  APIs it's not compiled in yet.
Daniel
2005-08-22 00:20:58 +00:00
Daniel Veillard
45b97e72d1 applied another patch from Rob Richards to fix xmlTextReaderGetAttributeNs
* xmlreader.c: applied another patch from Rob Richards to fix
  xmlTextReaderGetAttributeNs and xmlTextReaderMoveToAttributeNs
Daniel
2005-08-20 21:14:28 +00:00
Daniel Veillard
3c40e61b7e applied patch from Rob Richards to fix xmlTextReaderGetAttribute behaviour
* xmlreader.c: applied patch from Rob Richards to fix
  xmlTextReaderGetAttribute behaviour with namespace declarations
Daniel
2005-08-17 07:07:44 +00:00
Kasimier T. Buchcik
764b3d61c3 Changed output for keyref-match errors; the target-node will be now
* xmlschemas.c include/libxml/xmlerror.h:
  Changed output for keyref-match errors; the target-node will
  be now reported rather than the scope-node of the keyref
  definition - allowing easier chasing of instance errors.
  This was reported by Guy Fabrice to the mailing list.
  Some initial parsing code for schema redefinitions.
* result/schemas/bug303566_1_1.err
  result/schemas/bug312957_1_0.err: Adapted test results due
  to the keyref changes.
2005-08-12 12:25:23 +00:00
Daniel Veillard
379a3b7dc5 applied patch from Derek Poon fixing bug #310692 Daniel
* valid.c: applied patch from Derek Poon fixing bug #310692
Daniel
2005-08-12 10:18:14 +00:00
Daniel Veillard
210536bd32 fix for bug #312945 as pointed by Dean Hill, the context type was not
* xmlschemas.c: fix for bug #312945 as pointed by Dean Hill, the
  context type was not always properly initialized.
Daniel
2005-08-10 21:40:02 +00:00
Daniel Veillard
60faf528d8 fixed bug #307377 about validation of choices in list values. added
* relaxng.c: fixed bug #307377 about validation of choices in
  list values.
* test/relaxng/307377* result/relaxng/307377* Makefile.am runtest.c:
  added examples to the regression tests, problem is that streaming
  version gives slightly more informations.
Daniel
2005-08-10 16:23:57 +00:00
Daniel Veillard
e0fd93f5d3 fixed bug #302302, nasty but the fix is rather simple. Daniel
* xinclude.c: fixed bug #302302, nasty but the fix is rather simple.
Daniel
2005-08-10 13:39:10 +00:00
Kasimier T. Buchcik
ea7e4798c4 Added missing test results.
* result/schemas/any6_1_0*: Added missing test results.
2005-08-10 10:37:47 +00:00
Daniel Veillard
4f82c8a161 fixed a determinism detection problem exposed by ##other tests commited by
* xmlregexp.c: fixed a determinism detection problem exposed by
  ##other tests commited by Kasimier, also added a small speedup
  of determinism detection.
* test/results/any6_2_0* any8_1_0* any7_1_2* any7_2_2*: added
  the results to the regression tests now
Daniel
2005-08-09 21:40:08 +00:00
Kasimier T. Buchcik
76d73f5bc5 Added some more tests for element wildcards.
* test/schemas/any7_2.xml test/schemas/any6_2.xsd
  test/schemas/any8_1.xsd test/schemas/any8_0.xml:
  Added some more tests for element wildcards.
2005-08-09 13:56:25 +00:00
Kasimier T. Buchcik
800cbac34e Fixed #312957 reported by Carol Hunter: streaming XPath states were not
* xmlschemas.c: Fixed #312957 reported by Carol Hunter:
  streaming XPath states were not popped in every case,
  thus failed to resolve correctly for subsequent input.
* test/schemas/bug312957* result/schemas/bug312957*:
  Added the test submitted by Carol Hunter.
2005-08-09 12:31:55 +00:00
Daniel Veillard
6e65e15777 trying to nail down the remaining ##other issues completed the tests and
* xmlregexp.c xmlschemas.c: trying to nail down the remaining
  ##other issues
* result/schemas/any7* test/schemas/any7: completed the tests
  and added the results
* result/schemas/any3_0_0.err result/schemas/any5_0_0.err
  result/schemas/any5_1_0.err: this slightly chnages the output
  from 3 existing tests
Daniel
2005-08-09 11:09:52 +00:00
Daniel Veillard
9e2110bbff applied patch from Marcus Boerger to remove warnings on Windows. Daniel
* nanoftp.c nanohttp.c xmlschemastypes.c: applied patch from
  Marcus Boerger to remove warnings on Windows.
Daniel
2005-08-08 20:33:54 +00:00
Daniel Veillard
100e18030d fixed #145092 by adding an xmlSaveOption to omit XML declaration Daniel
* xmlsave.c include/libxml/xmlsave.h: fixed #145092 by adding
  an xmlSaveOption to omit XML declaration
Daniel
2005-08-08 14:44:11 +00:00
Daniel Veillard
b8c8016044 fixed bug #310333 with a patch close to the provided patch for HTML UTF-8
* HTMLtree.c: fixed bug #310333 with a patch close to the provided
  patch for HTML UTF-8 serialization
* result/HTML/script2.html: this changed the output of that test
Daniel
2005-08-08 13:46:45 +00:00
Daniel Veillard
10752284e3 fixed bug #310264, basically it's about reentrancy of count based
* xmlregexp.c: fixed bug #310264, basically it's about reentrancy
  of count based transition, when going though the counter must
  be reset to 0
* test/schemas/bug310264* result/schemas/bug310264*: added the
  regression test.
Daniel
2005-08-08 13:05:13 +00:00
Kasimier T. Buchcik
004b5463eb Fixed a memory leak: xmlSchemaFreeAnnot() was only freeing the first
* xmlschemas.c: Fixed a memory leak: xmlSchemaFreeAnnot() was
  only freeing the first annotation in the list.
2005-08-08 12:43:09 +00:00
Daniel Veillard
c4ff83279c applied patch from Rob Richards fixing xmlTextReaderGetAttribute Daniel
* xmlreader.c: applied patch from Rob Richards fixing
  xmlTextReaderGetAttribute
Daniel
2005-08-08 07:45:23 +00:00
Daniel Veillard
d2755a8134 fixed an uninitialized memory access spotted by valgrind Daniel
* HTMLparser.c: fixed an uninitialized memory access spotted by
  valgrind
Daniel
2005-08-07 23:42:39 +00:00
Daniel Veillard
336a8e13bf get rid of the dependancy on a locally installed DTD try to cleanup the
* test/relaxng/docbook_0.xml: get rid of the dependancy on a locally
  installed DTD
* uri.c include/libxml/uri.h xmlIO.c nanoftp.c nanohttp.c: try to
  cleanup the Path/URI conversion mess, needed fixing in various
  layers and a new API to the uri module which also fixes #306861
* runtest.c: integrated a regression test specific to check the
  URI conversions done before calling the I/O handlers.
Daniel
2005-08-07 10:46:19 +00:00
Daniel Veillard
29f6100e69 small doc fix for #312647 Daniel
* doc/XSLT.html doc/xml.html: small doc fix for #312647
Daniel
2005-08-06 09:07:15 +00:00
Daniel Veillard
c2aa615ccb applied patch from Rob Richards to allow disabling modules in win32, fixes
* win32/configure.js: applied patch from Rob Richards to allow
  disabling modules in win32, fixes #304071
Daniel
2005-08-02 11:27:54 +00:00
Daniel Veillard
22eda2bc82 applied fix from Jakub Piotr Clapa for xmlAttr.parent(), closing #312181
* python/libxml.c: applied fix from Jakub Piotr Clapa for
  xmlAttr.parent(), closing #312181
Daniel
2005-08-01 05:20:16 +00:00
Daniel Veillard
d541c8f8b4 report improvement more tests Daniel
* schematron.c: report improvement
* test/schematron/zvon* result/schematron/zvon*: more tests
Daniel
2005-07-31 16:49:51 +00:00
Daniel Veillard
5fe95a8fd9 applied patch from Rob Richards to add schematron to the build on Windows
* win32/Makefile.msvc win32/configure.js: applied patch from Rob
  Richards to add schematron to the build on Windows
* test/schematron/zvon3* result/schematron/zvon3*: second test
* test/schematron/zvon10* result/schematron/zvon10*: this is the
  real second test 10 and 2 are swapped.
Daniel
2005-07-31 14:05:18 +00:00
Daniel Veillard
eaecb3eab2 more bug fixes, improve the error reporting. second test Daniel
* schematron.c: more bug fixes, improve the error reporting.
* test/schematron/zvon2* result/schematron/zvon2*: second test
Daniel
2005-07-31 13:43:14 +00:00
Daniel Veillard
c740a17f45 fixing the loop bug, fixing schematron text error rendering started
* schematron.c xmllint.c: fixing the loop bug, fixing schematron
  text error rendering
* Makefile.am result/schematron/* test/schematron/zvon1*.sct:
  started integrating within "make tests"
Daniel
2005-07-31 12:17:24 +00:00
Daniel Veillard
22cce34629 a few first tests from Zvon unfortunately with the old syntax Daniel
* test/schematron/*: a few first tests from Zvon unfortunately
  with the old syntax
Daniel
2005-07-30 21:28:12 +00:00
Daniel Veillard
e70375cd79 commiting work done on the plane last week-end Daniel
* schematron.c xmllint.c include/libxml/schematron.h: commiting
  work done on the plane last week-end
Daniel
2005-07-30 21:09:12 +00:00
Daniel Veillard
db68b74dc7 allows an extra argument to subset the tests big speedup for validation,
* runtest.c: allows an extra argument to subset the tests
* xmlregexp.c: big speedup for validation, basically avoided
  transition creation explosion when removing epsilon transition
Daniel
2005-07-30 13:18:24 +00:00
Daniel Veillard
75e389d4e0 more cleanups based on sparse reports, added "make sparse" Daniel
* Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c
  xmlwriter.c: more cleanups based on sparse reports, added
  "make sparse"
Daniel
2005-07-29 22:02:24 +00:00
Daniel Veillard
4ea89f04cc don't output any message on failed resolver lookups, better done by the
* python/libxml.c: don't output any message on failed resolver lookups,
  better done by the python user provided resolver layer.
Daniel
2005-07-29 10:12:45 +00:00
Daniel Veillard
24505b0f5c a lot of small cleanups based on Linus' sparse check output. Daniel
* HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c
  runsuite.c runtest.c schematron.c testHTML.c testReader.c
  testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c
  xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of
  small cleanups based on Linus' sparse check output.
Daniel
2005-07-28 23:49:35 +00:00
Daniel Veillard
4cd3b51966 added schematron.h, oops ... Daniel
* include/libxml/Makefile.am: added schematron.h, oops ...
Daniel
2005-07-28 19:28:58 +00:00
Kasimier T. Buchcik
11162b7ce7 Added creation of the content type of xs:anyType. This is needed when
* xmlschemastypes.c: Added creation of the content type of
  xs:anyType. This is needed when trying to extend xs:anyType
  (although it makes no sense to extend it; IMHO the schema
  people should have ruled this out). This was reported
  by Yong Chen to the mailing list.
* xmlschemas.c: Fixed handling of xs:anyType in
  xmlSchemaCheckCOSCTExtends() (reported by Young Chen). Tiny
  adjustment to an error report output.
* test/schemas/extension2* result/schemas/extension2*:
  Added a test case provided by Young Chen.
2005-07-28 00:50:22 +00:00
William M. Brack
38c4b332c4 enhanced xmlBuildRelativeURI to allow the URI and the base to be in
* uri.c: enhanced xmlBuildRelativeURI to allow the URI and the
  base to be in "relative" form
2005-07-25 18:39:34 +00:00
Daniel Veillard
d4501d77ca started adding schematron to the xmllint tool, the report infrastructure
* schematron.c xmllint.c: started adding schematron to the xmllint
  tool, the report infrastructure is gonna be fun.
Daniel
2005-07-24 14:27:16 +00:00
Kasimier T. Buchcik
5c68274c86 Added regression tests (they fail currently), but did not added results
* test/schemas/any6* test/schemas/any7*: Added regression tests
  (they fail currently), but did not added results yet.
2005-07-23 21:28:30 +00:00
Kasimier T. Buchcik
5da6dd3428 Removed the workaround code in xmlSchemaValidateElemWildcard() for the
* xmlschemas.c: Removed the workaround code in
  xmlSchemaValidateElemWildcard() for the <any> wildcard
  with namespace == ##other. Support for such wildcards was
  implemented by Daniel at the automaton level recently, and
  the workaround code iterfered with it.
2005-07-23 21:12:30 +00:00
Daniel Veillard
ed6c54971f changed xmlPatterncompile signature to pass an int and not an enum since
* pattern.c include/libxml/pattern.h: changed xmlPatterncompile
  signature to pass an int and not an enum since it can generate
  ABI compat troubles.
* include/libxml/schematron.h schematron.c: adding the new
  schematron code, work in progress lots to be left and needing
  testing
* include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h.in
  Makefile.am configure.in: integration of schematron into the
  build
* xpath.c include/libxml/xpath.h: adding flags to control compilation
  options right now just XML_XPATH_CHECKNS.
Daniel
2005-07-23 15:00:22 +00:00
Kasimier T. Buchcik
041c5ffa5c Removed an "internal error" message from xmlSchemaBuildAContentModel()
* xmlschemas.c: Removed an "internal error" message from
  xmlSchemaBuildAContentModel() when an empty model group
  definition is hit.
2005-07-23 14:42:34 +00:00
Kasimier T. Buchcik
627e9a934b Changed xmlCompileStepPattern() and xmlCompileAttributeTest() to handle
* pattern.c: Changed xmlCompileStepPattern() and
  xmlCompileAttributeTest() to handle the "xml" prefix without
  caring if the XML namespace was supplied by the user.
2005-07-22 22:37:35 +00:00
Kasimier T. Buchcik
2c9aac03dc Fixed xmlSchemaPSimpleTypeErr(), which did not output the given string
* xmlschemas.c: Fixed xmlSchemaPSimpleTypeErr(), which did not
  output the given string arguments correctly.
2005-07-21 22:14:12 +00:00