xmlschemas.c


Log

Author Commit Date CI Message
Juergen Keil d201e71e 2014-08-07T11:42:07 no error column in structured error handler for xml schema validation errors For https://bugzilla.gnome.org/show_bug.cgi?id=734363 When using xml schema validation, structured error callbacks do not get passed a valid column number in xmlError field "int2". $ ./xmlsaxparse colbug5.xml colbug5.xsd colbug5.xml:3:0: Element '{urn:colbug5}bx': This element is not expected. Expected is ( {urn:colbug5}b ). The schema error is reported for line 3, column 0 (= N/A). I'd like to have the column number of the error passed in the xmlError structure. With this test case: line 3, column 9.
Jan Pokorný 761c9e99 2013-11-29T23:26:27 Get rid of 'REPLACEMENT CHARACTER' Unicode chars in xmlschemas.c Middle dot pairs (as in [1]) turned to grave accents/backticks, section signs to dollars (for compatibility with ASCII). [1] http://www.w3.org/TR/xmlschema-1/ Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Jan Pokorný 7a7cad6e 2013-11-29T23:26:26 Fix typos in xmlschemas{,types}.c Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Gaurav f3d79416 2013-11-28T22:53:54 Type mismatch in xmlschemas.c For https://bugzilla.gnome.org/show_bug.cgi?id=715152
Csaba László 1f6c42cf 2013-03-18T15:30:00 Fix an old bug in xmlSchemaValidateOneElement Recently I have run into the very same problem Tiberius Duluman did back in Wed, 13 May 2009 15:56:55 +0300 ([xml] Bug in xmlSchemaValidateOneElement function). Now I can proof now that his problem is a valid problem. I checked the latest available version of xmlschemas.c (2.9.0.) and the problem is still there! I think I have found a solution to the problem which I'd like proof with you: My quick solution to the problem is to replace line 27849 in xmlschemas.c (v2.9.0.) in function xmlSchemaVDocWalk valRoot = xmlDocGetRootElement(vctxt->doc); with this one: valRoot = vctxt->validationRoot ? vctxt->validationRoot : xmlDocGetRootElement(vctxt->doc); Currently I'm using version 2.7.8. in Windows and this change seems to solve the problem.
Daniel Veillard c100e69c 2013-02-28T19:02:32 fix schema validation in combination with xsi:nil Based on Thomas Gamper <icicle@cg.tuwien.ac.at> findings and initial patch There is no point doing a regexp validation of further content if there actually is no further content because the element is nilled.
Daniel Veillard f8e3db04 2012-09-11T13:26:36 Big space and tab cleanup Remove all space before tabs and space and tabs at end of lines.
Daniel Veillard c70d185a 2012-08-23T23:28:04 Fix an XSD error when generating internal automata When generating a sequence add an extra epsilon transition to avoid further constructs from entering via the last state Bug reported by Johan Corveleyn <jcorvel@gmail.com>
Daniel Veillard ef4526ad 2012-08-15T09:14:31 Fix a variable name in comment
Daniel Veillard 97fa5b3c 2012-08-14T11:01:07 Fix file and line report for XSD SAX and reader streaming validation Things now work correctly at the xmllint level: thinkpad:~/XML -> xmllint --sax --noout --schema test_schema.xsd test_xml.xml test_xml.xml:72721: Schemas validity error : Element 'level1': Missing child element(s). Expected is ( level2 ). test_xml.xml fails to validate thinkpad:~/XML -> xmllint --stream --schema test_schema.xsd test_xml.xml test_xml.xml:72721: Schemas validity error : Element 'level1': Missing child element(s). Expected is ( level2 ). test_xml.xml fails to validate thinkpad:~/XML -> * error.c: fix a corner case of not reporting lines when we should * include/libxml/xmlschemas.h doc/symbols.xml: had to add new entry points to set the filename on a validation context and a locator callback used to fetch the line and file from the context * xmlschemas.c: add the new entry points xmlSchemaValidateSetFilename() and xmlSchemaValidateSetLocator(), plus make sure the error reporting routine gets the information if available. Add a locator for SAX. * xmlreader.c: add and plug a locator for readers.
Remi Gacogne 4609e6c9 2012-05-11T15:31:05 XSD: optional element in complex type extension For https://bugzilla.gnome.org/show_bug.cgi?id=609796 Libxml2 fails to validate an instance document against a schema if an element whose type is a complex extension of some base type with an optional child element and that child element is not specified in the instance document. For example, suppose I have some complex type BaseType that is defined to have one child element in a sequence group that has minOccurs set to 0
Ryan Sleevi 5cf1deb0 2012-02-29T10:56:32 Fix a logic error in Schemas Component Constraints
Toyoda Eizi 8bb12988 2011-08-04T16:40:48 Fix XSD validation bug #630130 This bug in xmlschemas made validation with the GML Schemas fail Test cases to be commited separately
Jim Panetta c84e863c 2010-11-03T21:05:18 627987 Fix XSD IDC errors in imported schemas Fix XSD IDC references when xsi:schemalocation is used for referencing the validation schemas
Rob Richards 410d2c4e 2009-09-24T11:00:16 Fix memory leak when doc is NULL * xmlschemas.c: fix memory leak when doc is NULL
Daniel Veillard 594e5dfb 2009-09-07T14:58:47 Chasing dead assignments reported by clang-scan * SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations, but this led to a few real bugs and some part not yet understood (relaxng/interleave)
Daniel Veillard d44b9364 2009-09-07T12:15:08 A few more safety cleanup raised by scan * SAX2.c encoding.c parser.c xmlschemas.c: a few more safety checks * relaxng.c: remove an unused intitialization
Daniel Veillard 76d36458 2009-09-07T11:19:33 Fixing assorted potential problems raised by scan * encoding.c parser.c relaxng.c runsuite.c tree.c xmlreader.c xmlschemas.c: nothing really serious but better safe than sorry
Daniel Veillard 4013e83e 2009-08-26T17:24:31 579746 XSD validation not correct / nilable groups * xmlschemas.c: when a particle need to be processed via counted transition, if the group is nillable, the counting won't work, so keep track of nillable subset as they are built and generate the appropriate epsilon transitions as needed * test/schemas/579746* result/schemas/579746*: add related test cases based on the bug report
Daniel Veillard bd56c443 2009-08-12T15:39:23 571271 fix semantic of xsd:all with minOccurs=0 * xmlschemas.c: apparently we though it allowed any of the sub elements to be missing, and probably not what's expected from the spec, though it used to forbid it c.f.: http://lists.xml.org/archives/xml-dev/200109/msg00512.html asking HT for confirmation but it's likely that we were wrong on the semantic * result/schemas/all_1_[367]*: this changes the output of soem of our internal regression tests
Wayne Jensen 99f7ac7f 2009-08-07T21:27:44 585505 – Document ids and refs populated by XSD * xmlschemas.c: simple patch allowing document ids and refs to be asserted when XSD validation is done.
Jason Childs edc68aad 2009-08-07T20:29:33 582906 XSD validating multiple imports of the same schema * xmlschemas.c: When validating a schema that includes the same file that has no targetNamespace defined an internal erro was thrown, depending on the orig namespace that should be allowed though * test/schemas/582906-* result/schemas/582906-*: 2 tests case, one where this is allowed, and one where this is forbidden
Jason Childs d9960720 2009-08-07T19:01:32 Bug 582887 – problems validating complex schemas * xmlschemas.c: fixes the problem faced when importing the same schemas multiple times but from different places which is allowed * test/schemas/582887* result/schemas/582887*: adding the specific test to the regressions
Miroslav Bajtos 8f58f89d 2009-08-07T17:22:12 Bug 579729 – fix XSD schemas parsing crash * xmlschemas.c: a typo in XSD schema validation, where inherited bfminlen rewrote blength and caused SIGSEGV
Daniel Veillard 2cdd17e2 2009-07-27T21:16:13 Fix an XSD validation crash * xmlschemas.c: fix a crash reported by Daniel Albeseder #589895
Daniel Veillard bccae2d2 2009-06-04T11:22:45 * c14n.c debugXML.c doc/examples/io2.c parser.c schematron.c valid.c xmlschemas.c xmlwriter.c xpath.c: use %s to printf string patch by Christian Persch, fixes #581612
Daniel Veillard 1572425c 2008-08-30T15:01:04 preparing 2.7.0 release remove some testing traces remove some warnings * configure.in, doc/*: preparing 2.7.0 release * tree.c: remove some testing traces * parser.c xmlIO.c xmlschemas.c: remove some warnings Daniel svn path=/trunk/; revision=3788
Daniel Veillard bf9c1dad 2008-08-26T07:46:42 add the testchar to 'make check' Volker Grabsch pointed out a typo * Makefile.am: add the testchar to 'make check' * xmlschemas.c: Volker Grabsch pointed out a typo * xmlregexp.c: production [19] from XML Schemas regexps were a mistake removed in version REC-xmlschema-2-20041028, Volker Grabsch provided a patch to remove it * test/schemas/regexp-char-ref_0.xml test/schemas/regexp-char-ref_0.xsd test/schemas/regexp-char-ref_1.xsd result/schemas/regexp-char-ref_0_0 result/schemas/regexp-char-ref_1_0: Volker Grabsch also provided regession tests for this Daniel svn path=/trunk/; revision=3776
Rob Richards c6947bb7 2008-06-29T15:04:41 fix crash with invalid whitespace facet * xmlschemas.c: fix crash with invalid whitespace facet svn path=/trunk/; revision=3750
Daniel Veillard 438ebbd5 2008-05-12T12:58:46 fx compilation when configured without the reader should fix #513110 * xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h python/types.c python/libxml_wrap.h python/libxml.c: fx compilation when configured without the reader should fix #513110 * doc/*: regenerated Daniel svn path=/trunk/; revision=3743
Daniel Veillard dee23485 2008-04-11T12:58:43 added new function xmlSchemaValidCtxtGetParserCtxt based on Holger * include/libxml/xmlschemas.h xmlschemas.c: added new function xmlSchemaValidCtxtGetParserCtxt based on Holger Kaelberer patch * doc/apibuild.py doc/*: regenerated the doc, chased why the new function didn't got any documentation, added more checking in the generator * include/libxml/relaxng.h include/libxml/schematron.h include/libxml/xmlschemas.h include/libxml/c14n.h include/libxml/xmlregexp.h include/libxml/globals.h include/libxml/xmlreader.h threads.c xmlschemas.c: various changes and cleanups following the new reports Daniel svn path=/trunk/; revision=3738
Daniel Veillard 33fe2888 2008-04-10T08:09:25 extend the cleanup rule space cleanup Daniel * Makefile.am: extend the cleanup rule * xmlschemas.c: space cleanup Daniel svn path=/trunk/; revision=3737
Daniel Veillard b3e45367 2008-03-26T13:39:31 fix a problem in externalSubsetSplit with a patch from Ashwin Daniel * xmlschemas.c: fix a problem in externalSubsetSplit with a patch from Ashwin Daniel svn path=/trunk/; revision=3716
Daniel Veillard 77fbc3ea 2008-03-24T14:06:19 fix an XML Schemas crash raised by Stefan Behnel when testing with W3C * xmlschemas.c: fix an XML Schemas crash raised by Stefan Behnel when testing with W3C test suite Daniel svn path=/trunk/; revision=3712
Daniel Veillard 7d0ca5e8 2008-02-05T08:43:52 apply fix suggested by Ashwin correcting a cut-n-paste error about the SAX * schemas.c: apply fix suggested by Ashwin correcting a cut-n-paste error about the SAX callback in cdataBlockSplit when streaming XSD validation Daniel svn path=/trunk/; revision=3684
Daniel Veillard 3888f472 2007-08-23T09:29:03 applied patch from Frank Gross fixing Schemas IDC import bug #455953 and * xmlschemas.c test/schemas/*455953* result/schemas/bug455953*: applied patch from Frank Gross fixing Schemas IDC import bug #455953 and also add the test to the regression suite Daniel svn path=/trunk/; revision=3652
Daniel Veillard 65fcf27a 2007-07-11T17:55:30 applied patch for xsi:nil from Frank Gross, this should fix bug #358125 * xmlschemas.c: applied patch for xsi:nil from Frank Gross, this should fix bug #358125 Daniel svn path=/trunk/; revision=3643
Daniel Veillard 734e7667 2007-06-26T11:30:31 fix a crash on solaris when a printf %s with a NULL argument occurs, * xmlschemas.c: fix a crash on solaris when a printf %s with a NULL argument occurs, should fix #450936 Daniel svn path=/trunk/; revision=3641
William M. Brack 06559b3a 2007-03-14T09:34:15 fixed problem with referenced attribute groups (bug #417621) re-ordered * xmlschemas.c: fixed problem with referenced attribute groups (bug #417621) * configure.in: re-ordered some includes for types.h / socket.h (bug 416001) svn path=/trunk/; revision=3590
Kasimier T. Buchcik deb58713 2006-08-15T12:52:30 While investigating bug #350247, I noticed that xmlSchemaIDCMatcher * xmlschemas.c: While investigating bug #350247, I noticed that xmlSchemaIDCMatcher structs are massively recreated although only a maximum of 3 structs is used at the same time; added a cache for those structures to the validation context.
Daniel Veillard 6f9b0878 2006-08-12T14:09:01 applied patch from Marton Illes to fix an allocation bug in * xmlschemas.c: applied patch from Marton Illes to fix an allocation bug in xmlSchemaXPathEvaluate should close #351032 Daniel
Daniel Veillard 1131e116 2006-08-07T11:02:54 applied patch from Bertrand Fritsch to fix a bug in * xmlschemas.c: applied patch from Bertrand Fritsch to fix a bug in xmlSchemaClearValidCtxt Daniel
Kasimier T. Buchcik f896d44a 2006-07-12T15:18:08 Fixed bug #347316, reported by David Belius: The simple type, which was * xmlschemas.c: Fixed bug #347316, reported by David Belius: The simple type, which was the content type definition of a complex type, which in turn was the base type of a extending complex type, was missed to be set on this extending complex type in the derivation machinery.
Kasimier T. Buchcik e5f810f6 2006-05-30T09:41:25 A warning will now be reported in the value of the XSD attribute * xmlschemas.c: A warning will now be reported in the value of the XSD attribute 'schemaLocation' does not consist of tuples (namespace-name, document-URI). A warning will be reported if a schema document could not be found at the specified location (via 'schemaLocation' or 'noNamespaceSchemaLocation'). * include/libxml/xmlerror.h: Added XML_SCHEMAV_MISC to xmlParserErrors.
Kasimier T. Buchcik 9b02e295 2006-05-11T16:25:44 Fixed bug #341337, reported by David Grohmann. The code expected a node * xmlschemas.c: Fixed bug #341337, reported by David Grohmann. The code expected a node (xmlNodePtr) on the info for a non-existent default attribute, which clearly cannot be expected, since the attribute does not exist. I can only guess that this sneaked trying to eliminate the query for the owner-element, which is unavoidable actually. Note that creation of default attributes won't have an effect if validating via SAX/XMLReader; i.e., the processor won't fire additional start-attribute events (I'm not even sure if Libxml2 has such a SAX-event; I think it hands them all over in the start-element event).
Kasimier T. Buchcik 92b394fc 2006-05-09T19:59:54 Fixed bug #341150, reported by Michael Romer. In * xmlschemas.c: Fixed bug #341150, reported by Michael Romer. In xmlSchemaBuildContentModelForSubstGroup(), xmlAutomataNewOnceTrans2() was incorrectly used instead of xmlAutomataNewTransition2() to mimic a xs:choice for substitution-groups. * test/schemas/subst-group-1_1.xsd test/schemas/subst-group-1_0.xml result/schemas/subst-group-1_0_1 result/schemas/subst-group-1_0_1.err: Added regression test supplied by Michael Romer for bug #341150.
Kasimier T. Buchcik 146a982e 2006-05-04T17:19:07 We'll raise an internal error and stop validation now when an entity is * xmlschemas.c: We'll raise an internal error and stop validation now when an entity is found in the instance document, since we don't support automatic entity substitution by the schema processor (yet?) - see bug #340316, reported by Nick Wellnhofer.
Kasimier T. Buchcik b63d2fab 2006-04-19T11:20:49 Fixed incorrect validation of restricted enumerations. Added related * xmlschemas.c test/schemas/restriction-enum-1* result/schemas/restriction-enum-1*: Fixed incorrect validation of restricted enumerations. Added related regression tests.
Daniel Veillard cdf59aa5 2006-04-13T07:50:11 fixing a deallocation problem in xmlSchemaAddSchemaDoc() in case of * xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc() in case of errors, should fix bug #338303 Daniel
Daniel Veillard b294717b 2006-03-27T09:45:01 removed unused code or variables, from Stefan Kost fixing #336163 and * xmlschemas.c: removed unused code or variables, from Stefan Kost fixing #336163 and #336164 Daniel
Daniel Veillard fef73a55 2006-03-27T09:38:57 applied patch from Stefan Kost fixing #336160 Daniel * xmlschemas.c: applied patch from Stefan Kost fixing #336160 Daniel
Daniel Veillard aac7c68e 2006-03-10T13:40:16 fix a few warning raised by gcc-4.1 and latests changes Daniel * c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few warning raised by gcc-4.1 and latests changes Daniel
Daniel Veillard 14b56439 2006-03-09T18:41:40 more cleanups based on coverity reports. Daniel * relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based on coverity reports. Daniel
Kasimier T. Buchcik 4c0aa16e 2006-02-20T14:47:08 Fixed a side-effect of the previous XSI bugfix: The constructor needs a * xmlschemas.c: Fixed a side-effect of the previous XSI bugfix: The constructor needs a bucket to be assigned during component fixup.
Kasimier T. Buchcik 1869be56 2006-02-20T13:37:55 Fixed xs:boolean to reject the empty string (reported by Bas Driessen on * xmlschemas.c xmlschemastypes.c: Fixed xs:boolean to reject the empty string (reported by Bas Driessen on the mailing-list). Fixed schema XSI-acquisition and construction: the schemata (xmlSchema) didn't get the targetNamespace in some cases, thus the component resolution mechanism failed to work. The XSI stuff needs to be tested more intensively; think about how to test this for regression.
Daniel Veillard 67952601 2006-01-05T15:29:44 upated the news regenerated the docs, preparing for release of 2.6.23 * NEWS configure.in libxml.spec.in testapi.c doc/*: upated the news regenerated the docs, preparing for release of 2.6.23 * pattern.c xmlschemas.c: fixed some comments Daniel
Kasimier T. Buchcik dfbc33a1 2006-01-03T10:51:59 Removed last dependency on the obsolete enum xmlSchemaValidError. * xmlschemas.c: Removed last dependency on the obsolete enum xmlSchemaValidError.
Daniel Veillard d0271473 2006-01-02T10:22:02 compilation and doc build fixes from Michael Day Daniel * xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation and doc build fixes from Michael Day Daniel
Kasimier T. Buchcik 5bb0c08d 2005-12-20T10:48:33 Fixed a segfault during text concatenation when validating a node tree: * xmlschemas.c xmlstring.c: Fixed a segfault during text concatenation when validating a node tree: xmlStrncat was called with a @len of -1; but unlike xmlStrncatNew, it does not calculate the length automatically in such a case (reported by Judy Hay on the mailing list). Updated the descriptions of the involved string functions to note this.
Kasimier T. Buchcik 7ca5aedf 2005-12-12T15:13:40 Workaround for bug #323510: substituted the epsilon transition for a * xmlschemas.c: Workaround for bug #323510: substituted the epsilon transition for a labelled transition, in order to avoid a bug in xmlregexp.c which eliminated the epsilon transition and marked the initial state as final.
Daniel Veillard 6a0baa0c 2005-12-10T11:11:12 fixed a number of warnings shown by HP-UX compiler and reported by Rick * HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number of warnings shown by HP-UX compiler and reported by Rick Jones Daniel
Kasimier T. Buchcik 215406f0 2005-12-07T12:14:09 Fixed a segfault: the instance document was still tried to be validated, * xmlschemas.c: Fixed a segfault: the instance document was still tried to be validated, if the schema, dynamically acquired using XSI was invalid, thus mangled. The validation will stop (or rather won't validate) now in such a case. The schema parser error code will be set on the validion context now; this is somehow not nice, but it assures that the validation context indicates an error in there was a parser error.
Kasimier T. Buchcik f39e8d1f 2005-11-30T11:03:24 Fixed bubbling of duplicate IDC nodes: the parent's list of duplicates was * xmlschemas.c: Fixed bubbling of duplicate IDC nodes: the parent's list of duplicates was filled with NULLs instead of the nodes under certain conditions. This lead to a segfault when the list's entries were accessed.
Kasimier T. Buchcik 132ba5f5 2005-11-28T12:32:24 An assignment to a local variable, which was used to access the IDC node * xmlschemas.c: An assignment to a local variable, which was used to access the IDC node list, was missing after the reallocation of the list (reported by Fabrice GUY bug #322411). Renamed the define ENABLE_IDC_NODE_TABLES to ENABLE_IDC_NODE_TABLES_TEST and *disabled* it, since it is used to force bubbling of IDC node tables even if not necessary; this was intended to be used for test purposes, but I obviously missed to disable it (although it apparently helped finding the bug).
Kasimier T. Buchcik 81755ea6 2005-11-23T16:39:27 In xmlSchemaAssembleByXSI() the return value of xmlSchemaGetMetaAttrInfo() * xmlschemas.c: In xmlSchemaAssembleByXSI() the return value of xmlSchemaGetMetaAttrInfo() was not assigned to anything; this caused XSI-driven-dynamic schema acquisition to fail with @noNamespaceSchemaLocation (reported by Julien Lamy on the mailing list).
Kasimier T. Buchcik 5d2998be 2005-11-22T17:36:01 Fixed a bug in xmlSchemaFindRedefCompInGraph() which caused the search for * xmlschemas.c: Fixed a bug in xmlSchemaFindRedefCompInGraph() which caused the search for components to stop at the first encountered attribute group component. Fixed error report in xmlSchemaCheckSRCRedefineFirst(): the designation of a not-found component was not reported.
Kasimier T. Buchcik 90b5ebc0 2005-11-18T17:18:27 Added xmlSchemaSetParserStructuredErrors() to the API. Fixed channeling of * xmlschemas.c include/libxml/xmlschemas.h: Added xmlSchemaSetParserStructuredErrors() to the API. Fixed channeling of error relevant information to subsequent parser/validation contexts.
Kasimier T. Buchcik 77e76829 2005-11-11T12:52:32 Changed xmlSchemaFormatIDCKeySequence() to use * xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence() to use xmlSchemaGetCanonValueWhtspExt() in order to correctly report values for xs:anySimpleType. * test/schemas/idc-keyref-err1* result/schemas/idc-keyref-err1*: Added a test for this change.
Kasimier T. Buchcik 69dea3a0 2005-11-07T14:02:44 Fixed the type of the totalDigits value to be positiveInteger. Fixed crash * xmlschemas.c xmlschemastypes.c: Fixed the type of the totalDigits value to be positiveInteger. Fixed crash in an error report function when we gave it the document node; only element and attribute nodes are processed now (reported by Rob Richards).
Kasimier T. Buchcik f326e77c 2005-10-20T11:06:00 Removed creation of a temporary parser context during validation when * xmlschemas.c: Removed creation of a temporary parser context during validation when processing xsi:type; this previously added a string to the dict of the schema - to assure thread safety, we don't want to modify a given schema during validation.
Kasimier T. Buchcik 940ab0c6 2005-10-19T17:00:53 Fixed a potential memory leak in xmlSchemaCheckCSelectorXPath() when an * xmlschemas.c: Fixed a potential memory leak in xmlSchemaCheckCSelectorXPath() when an internal error occurs. Fixed setting of ctxt->err to the given error code in the parsing error functions. * pattern.c: Added internal xmlCompileIDCXPathPath() as a starting point for IDC XPath compilation; this and some other tiny changes fixes issues regarding whitespace in the expressions and IDC selector/field relevant restrictions of the subset of XPath. Fixed a missing blocking of attributes in xmlStreamPushInternal().
Daniel Veillard 567a45b5 2005-10-18T19:11:55 removed the error message removed 2 instability warnings from function * runtest.c: removed the error message * relaxng.c xmlschemas.c: removed 2 instability warnings from function documentation * include/libxml/schemasInternals.h: changed warning about API stability * xmlregexp.c: trying to improve runtime execution of non-deterministic regexps and automata. Not fully finished but should be way better. Daniel
Kasimier T. Buchcik ee8e8ae9 2005-10-17T14:15:37 Fixed a memory leak in xmlSchemaContentModelDump(). Added output of local * xmlschemas.c: Fixed a memory leak in xmlSchemaContentModelDump(). Added output of local types in xmlSchemaElementDump(). Tiny cosmetical changes to the dump output.
Kasimier T. Buchcik 65c2f1d7 2005-10-17T12:39:58 Silenced intel compiler warnings (reported by Kjartan Maraas, bug * tree.c pattern.c: Silenced intel compiler warnings (reported by Kjartan Maraas, bug #318517). * xmlschemas.c: The above changes in pattern.c revealed an inconsistency wrt IDCs: we now _only_ pop XPath states, if we really pushed them beforehand; this was previously not checked for the case when we discover an element node to be invalid wrt the content model. Fixed segfault in xmlSchemaGetEffectiveValueConstraint().
Kasimier T. Buchcik 27820270 2005-10-14T14:33:48 Fixed some identity-constraint issues: Restructured IDC node-tables * xmlschemas.c: Fixed some identity-constraint issues: Restructured IDC node-tables Allowed IDCs to resolve also to nodes of complex type with simple content. Added check for keyrefs with references to keyrefs. IDC target-nodes were interferring with IDC node-tables, since they used one list of entries only. I separated this one big list into 3 lists: 1 for IDC node-table entries, 1 for _duplicates_ of IDC node-table entries and 1 for IDC target-nodes. More code, but cleaner and it works at last. Keyrefs will fail to resolve to duplicate key/unique entries. I thought this was already working this way, but it didn't. The wording of the definition for [node table] in the spec can lead to a scenario, where keyrefs resolve perfectly, even if the relevant key-sequences of the referenced key/unique have duplicates in the subtree. Currently only Saxon 8.5.1 is dissallowing resolution to duplicate entries correctly - we will follow Saxon here. Removed some intel compiler warnings (reported by Kjartan Maraas, bug #318517). * pattern.c: Fixed an IDC-XPath problem when resolving to attributes.
Kasimier T. Buchcik 570faa57 2005-10-10T13:18:40 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.
Daniel Veillard 33b20b70 2005-09-12T21:43:20 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
Kasimier T. Buchcik 22c0c465 2005-09-12T19:09:46 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.
Kasimier T. Buchcik 630215ba 2005-08-22T10:15:39 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.
Kasimier T. Buchcik 764b3d61 2005-08-12T12:25:23 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.
Daniel Veillard 210536bd 2005-08-10T21:40:02 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
Kasimier T. Buchcik 800cbac3 2005-08-09T12:31:55 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.
Daniel Veillard 6e65e157 2005-08-09T11:09:52 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
Kasimier T. Buchcik 004b5463 2005-08-08T12:43:09 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.
Daniel Veillard 24505b0f 2005-07-28T23:49:35 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
Kasimier T. Buchcik 11162b7c 2005-07-28T00:50:22 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.
Kasimier T. Buchcik 5da6dd34 2005-07-23T21:12:30 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.
Kasimier T. Buchcik 041c5ffa 2005-07-23T14:42:34 Removed an "internal error" message from xmlSchemaBuildAContentModel() * xmlschemas.c: Removed an "internal error" message from xmlSchemaBuildAContentModel() when an empty model group definition is hit.
Kasimier T. Buchcik 2c9aac03 2005-07-21T22:14:12 Fixed xmlSchemaPSimpleTypeErr(), which did not output the given string * xmlschemas.c: Fixed xmlSchemaPSimpleTypeErr(), which did not output the given string arguments correctly.
Daniel Veillard ffa3c749 2005-07-21T13:24:09 applied a patch from Marcus Boerger to fix problems with calling * error.c globals.c parser.c runtest.c testHTML.c testSAX.c threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlerror.h include/libxml/xmlexports.h include/libxml/xmlschemas.h: applied a patch from Marcus Boerger to fix problems with calling conventions on Windows this should fix #309757 Daniel
Daniel Veillard 0a119ebe 2005-07-20T13:46:00 an optimization of the char data inner loop, can gain up to 10% in pure * parser.c: an optimization of the char data inner loop, can gain up to 10% in pure SAX2 parsing speed * xmlschemas.c: applied patch from Kupriyanov Anatolij fixing a bug in XML Schemas facet comparison #310893 Daniel
Daniel Veillard 77005e6f 2005-07-19T16:26:18 fixed the error reporting for not transitions fixed output Daniel * xmlregexp.c xmlschemas.c: fixed the error reporting for not transitions * result/schemas/any5_0_0* result/schemas/any5_0_2* result/schemas/any5_1_0*: fixed output Daniel
Daniel Veillard 9efc476b 2005-07-19T14:33:55 fixing bug #172215 about foreign namespaces by adding support for negated * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: fixing bug #172215 about foreign namespaces by adding support for negated string transitions. Error messages still need to be improved. * test/schemas/any5* result/schemas/any5*: adding regression tests for this. Daniel
Daniel Veillard a980befc 2005-07-18T21:34:03 fixed xsd:all when used in conjunction with substitution groups adding * xmlschemas.c: fixed xsd:all when used in conjunction with substitution groups * test/schemas/allsg_* result/schemas/allsg_*: adding specific regression tests, strangely missing from NIST/Sun/Microsoft testsuites Daniel
Daniel Veillard afc05b68 2005-07-17T06:11:19 fixed bug #307508, a bad automata was built but this showed as an * xmlschemas.c: fixed bug #307508, a bad automata was built but this showed as an indeterminist result Daniel
Daniel Veillard da0aa4cf 2005-07-13T23:07:49 applied patch from Marcus Boerger to route relaxng and schemas error * error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h include/libxml/xmlschemas.h: applied patch from Marcus Boerger to route relaxng and schemas error messages when using the reader through the structured interface if activated. * elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs to test. Daniel
Daniel Veillard 1f33c4d6 2005-07-10T21:38:31 preparing to make testsuite releases along with code source releases fixed * xstc/Makefile.am README README.tests Makefile.tests Makefile.am: preparing to make testsuite releases along with code source releases * gentest.py testapi.c: fixed a couple of problem introduced by the new Schemas support for Readers * xpath.c: fixed the XPath attribute:: bug #309580, #309864 in a crude but simple way. * xmlschemas.c include/libxml/tree.h: fixed a couple of problems raised by the doc builder. * doc/*: made rebuild Daniel
Daniel Veillard df4223ec 2005-07-10T19:52:06 fixed a bug introduced on last commit daniel * xmlschemas.c: fixed a bug introduced on last commit daniel
Daniel Veillard f10ae12c 2005-07-10T19:03:16 fixed a typo pointed by Jeroen Ruigrok increased the APIs for xmlReader * doc/xmllint.1 doc/xmllint.html doc/xmllint.xml: fixed a typo pointed by Jeroen Ruigrok * include/libxml/xmlreader.h include/libxml/xmlschemas.h: increased the APIs for xmlReader schemas validation support * xmllint.c xmlreader.c xmlschemas.c: xmlReader schemas validation implementation and testing as xmllint --stream --schema ... Daniel
Daniel Veillard 971771ef 2005-07-09T17:32:57 fix for #309761 from Dylan Shell added xmlSchemaSAXPlug and * parser.c: fix for #309761 from Dylan Shell * xmlschemas.c include/libxml/xmlschemas.h: added xmlSchemaSAXPlug and xmlSchemaSAXUnplug generic APIs for SAX Schemas validation. * xmllint.c: couple of fixes plus added descriptions for --sax and --sax1 Daniel