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

2644 Commits

Author SHA1 Message Date
Kasimier T. Buchcik
570faa57c4 Initial implementation for redefinitions; this still misses checks for
* xmlschemas.c include/libxml/schemasInternals.h
  include/libxml/xmlerror.h: Initial implementation for
  redefinitions; this still misses checks for restrictions
  of the content model of complex types.
  Fixed default/fixed values for attributes (looks like they
  did not work in the last  releases).
  Completed constraints for attribute uses.
  Seperated attribute derivation from attribute constraints.
  Completed constraints for attribute group definitions.
  Disallowing <import>s of schemas in no target namespace if the
  importing schema is a chameleon schema. This contradicts
  the way Saxon, Xerces-J, XSV and IBM's SQC works, but the
  W3C XML Schema WG, thinks it is correct to dissalow such
  imports.
  Added cos-all-limited constraints.
  Restructured reference resolution to model groups and element
  declarations.
  Misc cleanup.
2005-10-10 13:18:40 +00:00
Rob Richards
54a8f67c05 remove warnings under Windows.
* schematron.c xmlregexp.c: remove warnings under Windows.
2005-10-07 02:33:00 +00:00
Daniel Veillard
bedc9771e7 applied patch from Massimo Morara fixing bug #317447 about risk of invalid
* parser.c: applied patch from Massimo Morara fixing bug #317447
  about risk of invalid write in xmlStringLenDecodeEntities
Daniel
2005-09-28 21:42:15 +00:00
Daniel Veillard
d070d3ca68 Adrian Mouat pointed out redundancies in xmlReportError() Daniel
* error.c: Adrian Mouat pointed out redundancies in xmlReportError()
Daniel
2005-09-27 09:20:07 +00:00
Daniel Veillard
5de0938fd1 seems a test to avoid duplicate transition is really needed at all times.
* xmlregexp.c: seems a test to avoid duplicate transition is
  really needed at all times. Luka Por gave an example hitting
  this. Changed back the internal API.
Daniel
2005-09-26 17:18:17 +00:00
Daniel Veillard
47fffb40d9 fixing leak in xmlTextReaderReadString() #316924 daniel
* xmlreader.c: fixing leak in xmlTextReaderReadString() #316924
daniel
2005-09-22 11:14:43 +00:00
Daniel Veillard
0f7b33101b more fixes to the behaviour of xmlBuildRelativeURI Daniel
* uri.c: more fixes to the behaviour of xmlBuildRelativeURI
Daniel
2005-09-15 14:15:20 +00:00
Daniel Veillard
94cc103b8c detect combinatory explosion and return with a runtime error in those
* xmlregexp.c: detect combinatory explosion and return with
  a runtime error in those case, c.f. #316338 though maybe we
  should not see such an explosion with that specific regexp,
  more checking needs to be done.
Daniel
2005-09-15 13:09:00 +00:00
Kasimier T. Buchcik
ef3d07d809 Added some comments for the struct fields.
* include/libxml/schemasInternals.h: Added some comments for the
  struct fields.
2005-09-14 17:53:43 +00:00
William M. Brack
820d5ed747 fixed problem when xmlBuildRelativeURI was given a blank path (bug 316224)
* uri.c: fixed problem when xmlBuildRelativeURI was given a
  blank path (bug 316224)
2005-09-14 05:24:27 +00:00
Daniel Veillard
33b20b70e2 release of 2.6.22 updated doc and rebuild. added XML_SAVE_NO_XHTML
* NEWS configure.in doc//*: release of 2.6.22 updated doc and
  rebuild.
* xmlsave.c include/libxml/xmlsave.h: added XML_SAVE_NO_XHTML
  xmlSaveOption
* xmlschemas.c: minor cleanups
Daniel
2005-09-12 21:43:20 +00:00
Kasimier T. Buchcik
91b2314354 And adapting another one.
* test/schemas/import1_0.xsd: And adapting another one.
2005-09-12 19:44:00 +00:00
Kasimier T. Buchcik
56cbbf2d82 Adapted result.
* result/schemas/derivation-ok-extension_0_0: Adapted result.
2005-09-12 19:31:53 +00:00
Kasimier T. Buchcik
cf0123d352 Adapted regression results.
* result/schemas/allsg_0_3.err result/schemas/allsg_0_4.err
  result/schemas/changelog093_1_0.err
  result/schemas/derivation-ok-extension_0_0.err
  result/schemas/import1_0_0.err
  result/schemas/derivation-ok-restriction-2-1-1_0_0.err:
  Adapted regression results.
2005-09-12 19:24:59 +00:00
Kasimier T. Buchcik
22c0c46515 Completion of the schema graph. Centralisation, more robustness of the
* xmlschemas.c include/libxml/schemasInternals.h
  include/libxml/xmlerror.h: Completion of the schema graph.
  Centralisation, more robustness of the schema document
  aquisition story. Centralised and restructured component fixup.
  Fixed attribute derivation when 'prohibiting' attribute uses.
  Added warnings: when schema documents cannot be localized
  during imports; when we get duplicate and pointless attribute
  prohibitions. Changed error reports for IDCs to report
  the relevant IDC designation as well (requested by GUY Fabrice).
  Misc code-cleanup.
2005-09-12 19:09:46 +00:00
Daniel Veillard
dbd6105321 applied second patch from David Madore to be less intrusive when handling
* xmlsave.c: applied second patch from David Madore to be less intrusive
  when handling scripts and style elements in XHTML1 should fix #316041
* test/xhtml1 result//xhtml1\*: updated the test accordingly
Daniel
2005-09-12 14:03:26 +00:00
Daniel Veillard
1db4a66b9a finished the integration with devhelp, completing the index and inserted
* libxml.spec.in doc/devhelp/*: finished the integration with
  devhelp, completing the index and inserted into the gtk-doc
  database at "make install" stage
Daniel
2005-09-12 13:10:09 +00:00
Rob Richards
2ce51c0646 add XML_SAVE_NO_EMPTY save option and use option from xmlSaveCtxtPtr
* include/libxml/xmlsave.h xmlsave.c: add XML_SAVE_NO_EMPTY save option
  and use option from xmlSaveCtxtPtr rather than global during output.
* xmlsave.c: fix some output formatting for meta element under XHTML.
2005-09-12 12:16:35 +00:00
Daniel Veillard
602434dee5 damn XML_FEATURE_UNICODE clashes with Expat headers rename to XML_WITH_ to
* include/libxml/parser.h parser.c xmllint.c: damn XML_FEATURE_UNICODE
  clashes with Expat headers rename to XML_WITH_ to fix bug #316053.
* doc/Makefile.am: build devhelp before the examples.
* doc/*: regenerated the API
Daniel
2005-09-12 09:20:31 +00:00
Daniel Veillard
60071aecb3 fix bug #316034, where xmlElemDump() can crash if given a document pointer
* xmlsave.c: fix bug #316034, where xmlElemDump() can crash if
  given a document pointer instead of an element
Daniel
2005-09-12 00:03:43 +00:00
Daniel Veillard
fb5c6c474b improvements on the html generation, should be complete with navigation,
* doc/devhelp/devhelp.xsl: improvements on the html generation,
  should be complete with navigation, what is left done is glueing
Daniel
2005-09-11 23:26:44 +00:00
Daniel Veillard
99b78502b6 started work needed to generate devhelp content, not too hard based on the
* configure.in doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml
  doc/devhelp/*: started work needed to generate devhelp content,
  not too hard based on the existing format and extractor.
Daniel
2005-09-11 22:04:08 +00:00
Daniel Veillard
eca59a25f7 fixes bug #315617 when using push CDATA in some cases. Daniel
* parser.c: fixes bug #315617 when using push CDATA in some cases.
Daniel
2005-09-09 10:56:28 +00:00
Daniel Veillard
8c6e65314f patch from Stphane Bidoul to compile without schematron Daniel
* xmllint.c: patch from Stphane Bidoul to compile without schematron
Daniel
2005-09-08 21:39:47 +00:00
Daniel Veillard
7837dd8bc3 patch from Oleg Paraschenko to fix xmlDebugDumpNode() when handled a
* debugXML.c: patch from Oleg Paraschenko to fix xmlDebugDumpNode()
  when handled a namespace node.
Daniel
2005-09-06 22:16:57 +00:00
Daniel Veillard
0bcc7f6ae9 updated the docs and rebuild releasing 2.6.21 removed
* NEWS elfgcchack.h testapi.c doc/*: updated the docs and rebuild
  releasing 2.6.21
* include/libxml/threads.h threads.c: removed xmlIsThreadsEnabled()
* threads.c include/libxml/threads.h xmllint.c: added the more
  generic xmlHasFeature() as suggested by Bjorn Reese, xmllint uses it.
Daniel
2005-09-04 21:39:03 +00:00
Daniel Veillard
b3d1491b69 prepare for release work for #303289, fix a formatting bug for MIN_INT
* configure.in doc/* configure.in: prepare for release
* xpath.c: work for #303289, fix a formatting bug for MIN_INT
Daniel
2005-09-04 20:47:39 +00:00
Daniel Veillard
b30ca313b5 real fix for #314881 and #314759 is was a bit more complex than initially
* relaxng.c: real fix for #314881 and #314759 is was a bit more complex
  than initially expected as ctxt->error == NULL had behaviour side
  effects at the compilation level itself.
Daniel
2005-09-04 13:50:03 +00:00
Daniel Veillard
f03a8cdacd fixing yet another pattern induced XPath bug #314282 reverted back last
* pattern.c xpath.c include/libxml/pattern.h: fixing yet another
  pattern induced XPath bug #314282
* relaxng.c: reverted back last change it was seriously broken
Daniel
2005-09-04 12:01:57 +00:00
Rob Richards
07b7200775 check for NULL to prevent crash with meta elements
* xmlsave.c: check for NULL to prevent crash with meta elements
2005-09-03 14:56:36 +00:00
Daniel Veillard
e40afecb89 structured error reporting problem with Relax-NG should fix #314881 and
* relaxng.c: structured error reporting problem with Relax-NG
  should fix #314881 and #314759
Daniel
2005-09-03 14:28:02 +00:00
Daniel Veillard
f5812c3179 fixes a portability problem raised by C370 on Z/OS Daniel
* pattern.c: fixes a portability problem raised by C370 on Z/OS
Daniel
2005-09-03 13:43:20 +00:00
Daniel Veillard
54f9a4f508 fixing a number of issues raised by xml:id but more generally related to
* SAX2.c tree.c valid.c: fixing a number of issues raised by xml:id
  but more generally related to attributes and ID handling, fixes
  #314358 among other things
Daniel
2005-09-03 13:28:24 +00:00
Daniel Veillard
2e7598cb06 avoid passing a char[] as snprintf first argument. implemented
* encoding.c parserInternals.c: avoid passing a char[] as snprintf
  first argument.
* threads.c include/libxml/threads.h: implemented xmlIsThreadsEnabled()
  based on Andrew W. Nosenko idea.
* doc/* elfgcchack.h: regenerated the API
Daniel
2005-09-02 12:28:34 +00:00
Daniel Veillard
c2f7056adb the use of AM_PATH_PYTHON is not portable enough reverting back to
* configure.in: the use of AM_PATH_PYTHON is not portable enough
  reverting back to AM_PATH_PROG
Daniel
2005-09-01 12:45:26 +00:00
Daniel Veillard
36d73403ff Applied the last patch from Gary Coady for #304637 changing the behaviour
* HTMLparser.c: Applied the last patch from Gary Coady for #304637
  changing the behaviour when text nodes are found in body
* result/HTML/*: this changes the output of some tests
Daniel
2005-09-01 09:52:30 +00:00
Daniel Veillard
9a27b86f53 adding reference to Bull AIX rpms c.f. #160598 Daniel
* doc/downloads.html doc/xml.html: adding reference to Bull AIX rpms
  c.f. #160598
Daniel
2005-09-01 09:25:47 +00:00
Daniel Veillard
cb2a71e3ba removed the obsolete --libtool-libs option, c.f. bug #314853 Daniel
* xml2-config.in: removed the obsolete --libtool-libs option, c.f.
  bug #314853
Daniel
2005-08-31 09:39:42 +00:00
Rob Richards
201087538b move handling of meta element for http-equiv in XHTML docs to
* xmlsave.c: move handling of meta element for http-equiv in XHTML docs to
  serialization and no longer modify internal tree.
2005-08-30 22:47:33 +00:00
Daniel Veillard
baad7887d3 the profiling usually don't work, disabled rebuilt Daniel
* libxml.spec.in: the profiling usually don't work, disabled
* doc/*: rebuilt
Daniel
2005-08-25 22:52:51 +00:00
Daniel Veillard
32a461f68b trying to fix the first part of #310033 by detecting gcc <= 3.2 Daniel
* configure.in: trying to fix the first part of #310033 by
  detecting gcc <= 3.2
Daniel
2005-08-25 21:48:54 +00:00
Daniel Veillard
8ce01ce31e fixed bug #310033, the URI extraction code given a node is a bit twisted
* error.c: fixed bug #310033, the URI extraction code given a
  node is a bit twisted and broke in the last months.
Daniel
2005-08-25 20:14:38 +00:00
Daniel Veillard
b6580aef14 uninitialized field and fix on test. Daniel
* debugXML.c result/XPath/xptr/strrange2: uninitialized field and
  fix on test.
Daniel
2005-08-25 14:18:56 +00:00
Daniel Veillard
cfa303ac70 change verbosity depending on API get back to previous outputs Daniel
* debugXML.c: change verbosity depending on API
* result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: get back
  to previous outputs
Daniel
2005-08-25 14:03:56 +00:00
Daniel Veillard
8874b94cd2 added a parser XML_PARSE_COMPACT option to allocate small text nodes (less
* HTMLparser.c parser.c SAX2.c debugXML.c tree.c valid.c xmlreader.c
  xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h:
  added a parser XML_PARSE_COMPACT option to allocate small
  text nodes (less than 8 bytes on 32bits, less than 16bytes on 64bits)
  directly within the node, various changes to cope with this.
* result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: this
  slightly change the output
Daniel
2005-08-25 13:19:21 +00:00
Daniel Veillard
3854c57a99 patch from Andrew W. Nosenko, use se $GCC = 'yes' instead of $CC = 'gcc'
* configure.in: patch from Andrew W. Nosenko, use se $GCC = 'yes'
  instead of $CC = 'gcc' because GCC may have a different name
Daniel
2005-08-25 10:17:45 +00:00
Daniel Veillard
4f69eb6945 changes the way the python binary is found, should also fix bug #308004
* configure.in: changes the way the python binary is found, should
  also fix bug #308004
Daniel
2005-08-24 22:19:10 +00:00
Daniel Veillard
53bd1f3c2c found another bug while looking at #309616 on missing entities. this
* parser.c: found another bug while looking at #309616 on missing
  entities.
* result/ent2.sax* result/ent7.sax* result/xml2.sax*: this changed the
  SAX stream in missing conditions for a few tests
Daniel
2005-08-24 14:46:07 +00:00
Daniel Veillard
2644ab270e applied the patch suggested #309565 which can avoid looping in error
* encoding.c: applied the patch suggested #309565 which can avoid
  looping in error conditions.
Daniel
2005-08-24 14:22:55 +00:00
Daniel Veillard
73da77e0d7 line numbers are now carried by most nodes, fixing xmlGetLineNo() c.f. bug
* SAX2.c tree.c: line numbers are now carried by most nodes, fixing
  xmlGetLineNo() c.f. bug #309205
Daniel
2005-08-24 14:05:37 +00:00