aboutsummaryrefslogtreecommitdiffstats
path: root/valid.c
Commit message (Collapse)AuthorAgeFilesLines
* make xmlValidateDocument emit a warning msg if there is no DTD, pointed byDaniel Veillard2002-10-161-1/+3
| | | | | | * valid.c: make xmlValidateDocument emit a warning msg if there is no DTD, pointed by Christian Glahn Daniel
* Joe Marcus Clarke reported a segfault on FBsd this was due toDaniel Veillard2002-10-091-3/+8
| | | | | | * valid.c: Joe Marcus Clarke reported a segfault on FBsd this was due to uninitialized parts of the validation context Daniel
* patch from Mark Vakoc to fix xmlNodeGetPath() DanielDaniel Veillard2002-10-081-2/+3
| | | | | * tree.c: patch from Mark Vakoc to fix xmlNodeGetPath() Daniel
* typo/bug found by Christian Glahn DanielDaniel Veillard2002-10-041-1/+1
| | | | | * valid.c: typo/bug found by Christian Glahn Daniel
* fixed bug #92518 validation error were not covering namespaceDaniel Veillard2002-09-261-0/+226
| | | | | | | | | * SAX.c valid.c include/libxml/valid.h: fixed bug #92518 validation error were not covering namespace declarations. * result/valid/dia.xml test/valid/dia.xml: the test wasn't valid, it was missing the attribute declaration for the namespace * result/VC/NS3: the fix now report breakages in that test Daniel
* fixed the data callback on transition functionality which was broken whenDaniel Veillard2002-09-241-1/+4
| | | | | | | | | | | | | * xmlregexp.c: fixed the data callback on transition functionality which was broken when using the compact form * result/schemas/*: updated the results, less verbose, all tests pass like before * DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of annoying warnings * xpath.c: try to provide better error report when possible Daniel
* made configuring with regexps/automata/unicode the default but withoutDaniel Veillard2002-09-191-2/+9
| | | | | | | | | | | | | * Makefile.am configure.in include/libxml/xmlversion.h.in: made configuring with regexps/automata/unicode the default but without schemas ATM * testRegexp.c valid.c xmlregexp.c include/libxml/xmlregexp.h: fixed the regexp based DTD validation performance and memory problem by switching to a compact form for determinist regexps and detecting the determinism property in the process. Seems as fast as the old DTD validation specific engine :-) despite the regexp built and compaction process. Daniel
* determinism is debugged, new DTD checking code now works butDaniel Veillard2002-09-181-20/+40
| | | | | | | * valid.c: determinism is debugged, new DTD checking code now works but xmlFAComputesDeterminism takes far too much CPU and the whole set usues too much memory to be really usable as-is Daniel
* small cleanup switched DTD validation to use only regexp when configuredDaniel Veillard2002-09-171-12/+116
| | | | | | | | * HTMLparser.c: small cleanup * valid.c xmlregexp.c: switched DTD validation to use only regexp when configured with them. A bit of debugging around the determinism checks is still needed Daniel
* incomplete steps for real/double support avoiding a compilation problemDaniel Veillard2002-09-161-12/+22
| | | | | | | | | * xmlschemastypes.c: incomplete steps for real/double support * testAutomata.c include/libxml/xmlautomata.h include/libxml/xmlregexp.h: avoiding a compilation problem * valid.c include/libxml/valid.h: starting the work toward using the regexps for actual DTD validation Daniel
* cosmetic cleanup started integrating a DTD validation layer based on theDaniel Veillard2002-09-131-0/+179
| | | | | | | * hash.c: cosmetic cleanup * valid.c include/libxml/tree.h include/libxml/valid.h: started integrating a DTD validation layer based on the regexps Daniel
* working on better error reporting of validity errors, especially providingDaniel Veillard2002-09-051-11/+20
| | | | | | | | * error.c valid.c: working on better error reporting of validity errors, especially providing an accurate context. * result/valid/xlink.xml.err result/valid/rss.xml.err: better error reports in those cases. Daniel
* try to provide file and line informations, not all messages are covered,Daniel Veillard2002-09-051-2/+57
| | | | | | * valid.c: try to provide file and line informations, not all messages are covered, but it's a (good) start Daniel
* adding a new API for Christian Glahn: xmlParseBalancedChunkMemoryRecoverDaniel Veillard2002-08-021-24/+24
| | | | | | | | | | * parser.c include/libxml/parser.h: adding a new API for Christian Glahn: xmlParseBalancedChunkMemoryRecover * valid.c: patch from Rick Jones for some grammar cleanup in validation messages * result/VC/* result/valid/*: this slightly change some of the regression tests outputs Daniel
* fixing bug #79331 in one path the lookup for ID attributes on a namespacedDaniel Veillard2002-07-061-4/+25
| | | | | | * valid.c: fixing bug #79331 in one path the lookup for ID attributes on a namespaced node wasn't handled correctly :-\ Daniel
* preparing 2.4.21 raised a too low limit rebuilt the docs DanielDaniel Veillard2002-04-291-1/+1
| | | | | | | * configure.in include/libxml/xmlwin32version.h: preparing 2.4.21 * valid.c: raised a too low limit * doc/*: rebuilt the docs Daniel
* first part of fixing #78729 DanielDaniel Veillard2002-04-151-5/+10
| | | | | * valid.c: first part of fixing #78729 Daniel
* trying to fix #77441 DanielDaniel Veillard2002-04-141-4/+4
| | | | | * configure.in: trying to fix #77441 Daniel
* Never commit without running "make tests" :-( fix a couple of stupiditiesDaniel Veillard2002-03-251-3/+0
| | | | | | | | * valid.c SAX.c: Never commit without running "make tests" :-( fix a couple of stupidities in the previous commit * result/*: a few changes in some attribute order result of previous commit. Daniel
* fixed bug #76168, attribute redeclared in the internal subset should notDaniel Veillard2002-03-251-0/+16
| | | | | | | | * valid.c SAX.c: fixed bug #76168, attribute redeclared in the internal subset should not raise duplicate ID errors, also there was a small bug in conjunction to namespace declarations defaulted and xml:xxx attributes DTD definitions. Daniel
* adding "make valgrind" running the full regression tests (except pythonDaniel Veillard2002-03-191-4/+4
| | | | | | | | | | | * Makefile.am: adding "make valgrind" running the full regression tests (except python ones) under Valgrind (using valgrind -q which was kindly added by the author). * valid.c: stupid bug pinpointed by Valgrind, the regression tests passes cleanly now except an obcure floating point initialization raised in log10() in one XPath regression test ??? * tree.c: edited some comments to close #75244 Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newDaniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* applied patch from Dodji Seketeli fixing an uninitailized variable inDaniel Veillard2002-03-101-3/+1
| | | | | | * valid.c: applied patch from Dodji Seketeli fixing an uninitailized variable in xmlValidGetValidElements() Daniel
* found and fixed a couple of allocation bugs DanielDaniel Veillard2002-02-201-0/+1
| | | | | * parser.c valid.c: found and fixed a couple of allocation bugs Daniel
* had to change 2 internal parsing API when processing document content toDaniel Veillard2002-02-191-5/+126
| | | | | | | | | | | | | | | | | * include/libxml/parserInternals.h parser.c: had to change 2 internal parsing API when processing document content to check the start and end of element content are defined in the same entity * valid.c include/libxml/valid.h: attribute normalization can generate a validity error added xmlValidCtxtNormalizeAttributeValue() with the context to report it. * SAX.c: fixed the last known bugs, crazy validation constraints when a document is standalone seems correctly handled. There is a couple of open issues left which need consideration especially PE93 on external unparsed entities and standalone status. Ran 1819 tests: 1817 suceeded, 2 failed and 0 generated an error in 8.26 s. The 2 tests left failing are actually in error. Cleanup done. Daniel
* implemented E59 spaces in CDATA does not match the nonterminal S DanielDaniel Veillard2002-02-191-3/+13
| | | | | | * valid.c: implemented E59 spaces in CDATA does not match the nonterminal S Daniel
* more validation test fixups added duration info for the tests DanielDaniel Veillard2002-02-191-2/+44
| | | | | | * SAX.c parser.c valid.c: more validation test fixups * check-xml-test-suite.py: added duration info for the tests Daniel
* a couple of errors were reported but not saved back as such in the parsingDaniel Veillard2002-02-181-0/+1
| | | | | | | * parser.c valid.c: a couple of errors were reported but not saved back as such in the parsing context. Down to 1% failure rate Ran 1819 tests: 1801 suceeded, 18 failed and 0 generated an error Daniel
* more work on the conformance suite. Took the step to finally blockDaniel Veillard2002-02-181-6/+38
| | | | | | | | * SAX.c parserInternals.c valid.c: more work on the conformance suite. Took the step to finally block documents with encoding errors. It's a fatal error per the spec, people should have fixed their documents by now. Daniel
* fixed #71740 NotationDecl with a required field missing DanielDaniel Veillard2002-02-171-0/+1
| | | | | | * valid.c SAX.c: fixed #71740 NotationDecl with a required field missing Daniel
* improved the behaviour a bit as well as the logs fixed a few more bugsDaniel Veillard2002-02-171-1/+6
| | | | | | | | * check-xml-test-suite.py: improved the behaviour a bit as well as the logs * parser.c valid.c SAX.c: fixed a few more bugs "Ran 1819 tests: 1778 suceeded, 41 failed, and 0 generated an error" Daniel
* fixing a comment fixing some troubles with validity check on namespacesDaniel Veillard2002-02-131-32/+92
| | | | | | | * include/libxml/entities.h: fixing a comment * valid.c: fixing some troubles with validity check on namespaces * result/VC/NS3 test/VC/NS3: added a specific regression test Daniel
* Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.Daniel Veillard2002-02-101-1/+0
| | | | | | | | | | | | * HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c globals.c parser.c threads.c tree.c valid.c xmlmemory.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlmemory.h include/libxml/xpathInternals.h: Tentatively fixed #69655 , make compiling with -Wredundant-decls clean. * python/libxml.c: fixed a warning. Daniel
* fix #68882, cleanup the XInclude copying of node, merge back IDs in theDaniel Veillard2002-02-101-1/+2
| | | | | | | | | * tree.c valid.c xinclude.c: fix #68882, cleanup the XInclude copying of node, merge back IDs in the target document. * result/XInclude/docids.xml test/XInclude/docs/docids.xml test/XInclude/ents/ids.xml: test case * result/VC/ElementValid4: output changed due to a typo fix Daniel
* Justin Fletcher found some parts of the code needing cleanup Fixed theDaniel Veillard2002-02-091-2/+2
| | | | | | | | | | * parserInternals.c valid.c: Justin Fletcher found some parts of the code needing cleanup * libxml.spec.in python/Makefile.am python/generator.py python/libxml.c python/libxml.py: Fixed the python Makefiles corrected a bug showing up on ia64, changed the name of the python internal module too Daniel
* fixing #70166 DanielDaniel Veillard2002-02-081-1/+9
| | | | | * valid.c: fixing #70166 Daniel
* another set of patches from Anthony Jones for copy operations cleanup andDaniel Veillard2002-01-241-0/+3
| | | | | | * valid.c tree.c entities.c: another set of patches from Anthony Jones for copy operations cleanup and robustness Daniel
* fixed validation of attributes content of type NAME NAMES NMTOKEN andDaniel Veillard2002-01-131-71/+110
| | | | | | | * valid.c: fixed validation of attributes content of type NAME NAMES NMTOKEN and NMTOKENS to accept internationalized values, very old bug. Fixes #67671 Daniel
* Fixed a few other problems raised by Charlie Bozeman. fixed the outputDaniel Veillard2001-12-311-10/+10
| | | | | | | | * DOCBparser.c parser.c valid.c include/libxml/parserInternals.h include/libxml/xmlerror.h include/libxml/xpathInternals.h: Fixed a few other problems raised by Charlie Bozeman. * result/VC/ElementValid[5-7]: fixed the output Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-52/+52
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* cleanup some static declarations DanielDaniel Veillard2001-12-131-1/+1
| | | | | * HTMLtree.c valid.c: cleanup some static declarations Daniel
* fix bug #66816 when validating. don't use sys/time.h if configure did notDaniel Veillard2001-12-131-0/+1
| | | | | | * valid.c: fix bug #66816 when validating. * xmllint.c: don't use sys/time.h if configure did not found it Daniel
* in case of content model validity error, don't print it if validityDaniel Veillard2001-11-201-19/+30
| | | | | | * valid.c: in case of content model validity error, don't print it if validity warnings were not requested. Daniel
* trying to fix namespaces + validation problems for good, closing #63619 inDaniel Veillard2001-11-081-10/+106
| | | | | | | | * valid.c include/libxml/tree.h: trying to fix namespaces + validation problems for good, closing #63619 in the process * result/valid/dia.xml test/valid/dia.xml: the Dia test was wrong in this respect, fixed it. Daniel
* fixed a very serious (looping) validation bug DanielDaniel Veillard2001-10-181-1/+8
| | | | | | * parser.c valid.c result/valid/rss.xml result/valid/rss.xml.err: fixed a very serious (looping) validation bug Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-0/+1
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* started integrating the non-controversial parts of Gary PenningtonDaniel Veillard2001-10-111-2/+2
| | | | | | | | | * HTMLtree.c catalog.c debugXML.c entities.c nanoftp.c parser.c valid.c xmlmemory.c xpath.c xpointer.c: started integrating the non-controversial parts of Gary Pennington multithread patches * catalog.c: corrected a small bug introduced Daniel
* close bug #61550 when xml: wasn't considered a namespace danielDaniel Veillard2001-10-021-0/+2
| | | | | * valid.c: close bug #61550 when xml: wasn't considered a namespace daniel
* fixed a Windows compiler warning (Chris Poblete) fix for mod when dividendDaniel Veillard2001-08-261-1/+2
| | | | | | * valid.c: fixed a Windows compiler warning (Chris Poblete) * xpath.c: fix for mod when dividend is 0 (Chris Poblete) Daniel
* deprecate the non-boundchecking Sprintf functions, add Snprintf thisDaniel Veillard2001-08-151-30/+82
| | | | | | | * include/libxml/valid.h debugXML.c valid.c: deprecate the non-boundchecking Sprintf functions, add Snprintf this should close bug #57984 Daniel