xmlschemas.c


Log

Author Commit Date CI Message
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
Kasimier T. Buchcik c306d904 2005-07-08T21:37:44 Added c-props-correct constraint to check for equal cardinality of * xmlschemas.c: Added c-props-correct constraint to check for equal cardinality of keyref/key. * include/libxml/xmlerror.h: Added an error code.
Kasimier T. Buchcik 85aed6d0 2005-07-08T18:06:18 tiny fix in xmlSchemaValidateStream() if a user-provided SAX handler is * xmlschemas.c: tiny fix in xmlSchemaValidateStream() if a user-provided SAX handler is given.
Daniel Veillard f0af8ec6 2005-07-08T17:27:33 fix some potential leaks in error cases. added --sax, to allow testing of * parser.c: fix some potential leaks in error cases. * xmllint.c: added --sax, to allow testing of --schemas --sax and various other combinations. * xmlschemas.c: fix a couple of tiny problems in xmlSchemaValidateStream() Daniel
Kasimier T. Buchcik 72d3adc4 2005-07-08T16:43:37 Changed xmlSchemaValidateFile() to use xmlSchemaValidateStream() * xmlschemas.c: Changed xmlSchemaValidateFile() to use xmlSchemaValidateStream() internally.
Daniel Veillard cdc82737 2005-07-08T15:04:06 added the missing entity to the document internal subset to avoid errors * test/relaxng/docbook_0.xml: added the missing entity to the document internal subset to avoid errors if the DocBook catalogs are not there * xmlschemas.c: first cut at implementing xmlSchemaValidateStream() untested yet Daniel
Daniel Veillard 39e5c890 2005-07-03T22:48:50 fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing * testapi.c tree.c: fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing another side effect in testapi seems to pass tests fine now. * include/libxml/parser.h parser.c: xmlStopParser() is no more limited to push mode * error.c: remove a warning * runtest.c xmllint.c: avoid compilation errors if only some parts of the library are compiled in. Daniel
Kasimier T. Buchcik 9c215eb3 2005-06-21T08:38:49 Fixed NULL values to be validated as empty string values (reported by * xmlschemas.c: Fixed NULL values to be validated as empty string values (reported by Dhyanesh to the mailing list). Adjusted text concatenation of mixed content.
Kasimier T. Buchcik 84a56e31 2005-06-16T12:44:35 Fixed SAX2 validation: grow of internal namespace list, appending of * xmlschemas.c: Fixed SAX2 validation: grow of internal namespace list, appending of element character content. * xstc/xstc.py: Added "--sax" option for SAX2 validation.
Daniel Veillard 81562d2d 2005-06-15T13:27:56 if sax1 is used and input is a file use the old API xmlParseFile() * xmllint.c: if sax1 is used and input is a file use the old API xmlParseFile() * xmlschemas.c: cleanups * doc/* testapi.c elfgcchack.h: rebuilt to add python bindings for the new functions in Schemas. Daniel
Kasimier T. Buchcik c63fbbff 2005-06-15T12:54:05 Added xmlSchemaValidateFile() to the public API. This will use SAX2-driven * xmlschemas.c include/libxml/xmlschemas.h: Added xmlSchemaValidateFile() to the public API. This will use SAX2-driven validation.
Kasimier T. Buchcik 9ca11bfc 2005-06-14T19:24:47 Some changes/fixes to the streaming evaluation. A bit of support for * pattern.c: Some changes/fixes to the streaming evaluation. * xmlschemas.c: A bit of support for parsing the schema for schema. Fixed attribute derivation when the use is "prohibited" and was "optional". Fixed an attribute construction bug, a left-over from the time, where <complexContent>, <extension>, etc. where created as structs.
Kasimier T. Buchcik 828f6547 2005-06-09T11:23:39 Fixed an attribute fixed/default value constraint error. * xmlschemas.c result/schemas/include1_0_0.err: Fixed an attribute fixed/default value constraint error.
Kasimier T. Buchcik 4efd90d9 2005-06-09T10:32:53 Changed the validation process to be able to work in streaming mode. Some * xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h include/libxml/xmlschemastypes.h: Changed the validation process to be able to work in streaming mode. Some datatype fixes, especially for list and union types. Due to the changes the error report output has changed in most cases. Initial migration to functions usable by both, the parser and the validator. This should ease a yet-to-come XS construction API in the long term as well.
Kasimier T. Buchcik bd6c3f7d 2005-05-25T17:29:36 Fixed facet errors to be channelled back for union type members; * xmlschemas.c: Fixed facet errors to be channelled back for union type members; facet-validation will stop now on the first error. Reported by GUY Fabrice to the mailing-list. * xmlschemastypes.c: Changed to ignore lengh-related facet validation for QNames and NOTATIONs as proposed by the schema people. * test/schemas/union2* result/schemas/union2*: Added regression tests for union types (by GUY Fabrice).
Kasimier T. Buchcik c0e833f0 2005-04-19T15:02:20 Removed 5 unnecessary dereferences (reported by Andriy, bug #301074). * xmlschemas.c xmlregexp.c: Removed 5 unnecessary dereferences (reported by Andriy, bug #301074).
Kasimier T. Buchcik 187ea5f6 2005-04-19T11:25:43 Removed workaround for bug #172215, since it does more harm in some * xmlschemas.c: Removed workaround for bug #172215, since it does more harm in some scenarios. Added some of the "Particle Restriction OK" constraints - not yet enabled.
Kasimier T. Buchcik c872afbd 2005-04-18T10:57:04 Added output of canonical values in identity-constraint error messages. * xmlschemas.c: Added output of canonical values in identity-constraint error messages. * xmlschemastypes.c include/libxml/xmlschemastypes.h: Added xmlSchemaGetCanonValueWhtsp() to the API. Further enhancement of the canonical value conversion. * test/schemas/changelog093_0.*: Added test with an XSD submitted by Randy J. Ray.
Kasimier T. Buchcik 016d92e3 2005-04-08T20:08:40 Added substitution group constraints; changed the build of the * xmlschemas.c: Added substitution group constraints; changed the build of the pre-computed substitution groups. Channeled errors during xsi assembling of schemas to the validation context. Fixed a big memory leak, which occured when using IDCs: the precomputed value of attributes was not freed if the attribute did not resolve to an IDC field (discovered with the help of Randy J. Ray's schema, posted to the xmlschema-dev maling list).
Kasimier T. Buchcik 1a99a397 2005-04-08T11:23:56 Added "Particle correct 2" to parsing of model groups. Added handling * xmlschemas.c: Added "Particle correct 2" to parsing of model groups. Added handling substitution groups inside <choice> and <sequence>; for <all> this is not supported yet. Changed circular checks for model groups definitions. "memberTypes" are processed at different levels now: component resolution first, construction later; this goes hand in hand with a global change to handle component resolution in a distinct phase. Fixed invalid default values for elements to mark the schema as invalid; this just resulted in an error report previously, but the schema was handled as valid. Separated the assignment of the model groups to referencing model group definition references (i.e. particles); this was needed to perform the circularity check for model group definitions. Added "Element Declaration Properties Correct (e-props-correct)" constraints. Separated component resolution for simple/complex types. * include/libxml/schemasInternals.h: Added a flag for substitution group heads.
Kasimier T. Buchcik 5e371a04 2005-04-05T15:08:05 Added "Type Derivation OK (Complex)" constraints and anchored them in the * xmlschemas.c: Added "Type Derivation OK (Complex)" constraints and anchored them in the "Element Locally Valid (Element)" constraints. This restricts the type substitution via "xsi:type".
Daniel Veillard f3598458 2005-04-05T11:10:45 patch from Matthew Burgess to improve some schemas facets validation * xmlschemas.c: patch from Matthew Burgess to improve some schemas facets validation messages. Daniel
Kasimier T. Buchcik aba15f76 2005-04-01T15:17:27 Corrected 'length' facet validation for QNames and notations. Corrected * xmlschemastypes.c: Corrected 'length' facet validation for QNames and notations. Corrected xmlSchemaGetCanonValue: some data types did not return a value if already in normalized form. * xmlschemas.c include/libxml/schemasInternals.h: Eliminated creation of structs for <restriction>, <extension>, <simpleContent>, <complexContent>, <list> and <union>: the information is now set directly on the corresponding simple/ complex type. Added some more complex type constraints. Added facet derivation constraints. Introduced "particle" components, which seem to be really needed if applying constraints. Corrected/change some of the parsing functions. This is all a bit scary, since a significant change to the code. * result/schemas/src-element2-*.err result/schemas/element-*.err: Adapted regression test results.
Daniel Veillard 5d4644ef 2005-04-01T13:11:58 revamped the elfgcchack.h format to cope with gcc4 change of aliasing * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
Daniel Veillard 0e460da3 2005-03-30T22:47:10 another patch from Brent Hendricks to add new handlers with the various * python/generator.py python/libxml.py: another patch from Brent Hendricks to add new handlers with the various validity contexts * python/tests/Makefile.am python/tests/validDTD.py python/tests/validRNG.py python/tests/validSchemas.py: also added the regression tests he provided Daniel
Kasimier T. Buchcik 53b5e052 2005-03-24T11:05:13 Fixed call to a facet error report: the type of the error was wrong, * xmlschemas.c: Fixed call to a facet error report: the type of the error was wrong, resulting in a segfault (bug #171220, reported by GUY Fabrice).
Kasimier T. Buchcik a62f75f1 2005-03-21T22:01:47 Removed a stupid bug in xmlSchemaValidateAttributes, failing to build a * xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes, failing to build a linked list correctly (bug #169898, reported by bing song, hmm...).
Kasimier T. Buchcik b34ad1b6 2005-03-21T20:10:31 Fixed a segfault, which occured during bubbling of IDC nodes (bug #170779 * xmlschemas.c: Fixed a segfault, which occured during bubbling of IDC nodes (bug #170779 and #170778, reported by GUY Fabrice): a variable was missed to be reset in a loop. Deactivated bubbling, if not referenced by a keyref.
Kasimier T. Buchcik 289dbb45 2005-03-17T12:39:31 Removed inheritance of "mixed" content type for short-hand restrictions of * xmlschemas.c: Removed inheritance of "mixed" content type for short-hand restrictions of "anyType" (reported by Guy Fabrice to the mailing list). Added the namespace conversion (chameleon includes) for the base type reference of <restriction> and <extension>. * test/schemas/bug152470_1.xsd: Adapted due to the above change of "mixed" inheritance.
Daniel Veillard bc69d4f9 2005-03-17T10:04:46 fixed a = -> == error pointed by GUY Fabrice Daniel * xmlschemas.c: fixed a = -> == error pointed by GUY Fabrice Daniel
Daniel Veillard cc5e2330 2005-03-16T21:55:35 more debug messages from Matthew Burgess xmlSchemaValidateLengthFacet API * xmlschemas.c: more debug messages from Matthew Burgess * xmlschemastypes.c: xmlSchemaValidateLengthFacet API missing check. Daniel
Kasimier T. Buchcik 478d693f 2005-03-16T16:29:18 Hopefully finished validation against facets to use the normalized value * xmlschemas.c xmlschemastypes.c include/libxml/xmlschemastypes.h: Hopefully finished validation against facets to use the normalized value of both, the facets and instance values. Added xmlSchemaValidateLengthFacetWhtsp(), xmlSchemaValidateFacetWhtsp() and xmlSchemaGetValType() to the schema API.
Daniel Veillard cffc1c7a 2005-03-12T18:54:55 removed a static buffer in xmlByteConsumed(), as pointed by Ben Maurer, * encoding.c: removed a static buffer in xmlByteConsumed(), as pointed by Ben Maurer, fixes #170086 * xmlschemas.c: remove a potentially uninitialized pointer warning Daniel
Kasimier T. Buchcik b474fa40 2005-03-11T12:34:42 The schema parser will stop if components could not be resolved. This is * xmlschemas.c: The schema parser will stop if components could not be resolved. This is not conforming to the spec but for now will avoid internal errors during type fixup and content model creation. Restructured inclusion/import of schemata: this avoids duplicate, self and circular inclusion. Chameleon includes are still workarounded. Added restriction to disallow references to non-imported namespaces. Corrected parsing of <group>. * result/schemas/bug167754_0_0*: Added a missing test result.
Kasimier T. Buchcik 7f3efa97 2005-03-07T17:41:58 Tiny restructuring of the validation start-up functions. Added cleanup of * xmlschemas.c: Tiny restructuring of the validation start-up functions. Added cleanup of the validation context at the end of validation. This takes care of the validation context being reused.
Kasimier T. Buchcik 9b77aa0b 2005-03-04T22:04:16 Added IDC validation of anySimpleType attribute values; anyway the IDC key * xmlschemas.c: Added IDC validation of anySimpleType attribute values; anyway the IDC key comparison is restricted to anySimpleType <--> string based types. For other types we would possibly need the canonical lexical representation of them; this sounds not performant, since we would need to build such a representation each time we want to compare against anySimpleType. TODO: think about buffering the canonical values somewhere. Fixed error reports for default attributes to work without a node being specified. This all and the enabling of IDC validation fixes bug #165346 (reported by Benoit Gr?goire - could not read his last name correctly from bugzilla).
Kasimier T. Buchcik 285ebabb 2005-03-04T18:04:59 Enabled IDC parsing and validation. Added xmlSchemaCopyValue to the API; * xmlschemas.c: Enabled IDC parsing and validation. * xmlschemastypes.c include/libxml/xmlschemastypes.h: Added xmlSchemaCopyValue to the API; this was done due to validation of default attributes against IDCs: since IDC keys consume the precomputed value, one needs a copy. * pattern.c: Enabled IDC support; this is currently done via calling xmlPatterncompile with a flag arg of 1.
Kasimier T. Buchcik ff858ca8 2005-02-18T11:37:58 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).
Kasimier T. Buchcik b06b4ded 2005-02-17T19:00:23 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.
Kasimier T. Buchcik 6e224f12 2005-02-17T11:10:44 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".
Kasimier T. Buchcik bd2a7d16 2005-02-16T12:27:25 Further work on IDCs, especially evaluation for attribute nodes. * xmlschemas.c: Further work on IDCs, especially evaluation for attribute nodes.
Kasimier T. Buchcik 25799cee 2005-02-15T14:39:48 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.
Daniel Veillard e92bf5d6 2005-02-04T17:28:19 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
Kasimier T. Buchcik 0a598528 2005-01-31T17:02:07 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.
Daniel Veillard d3210bc8 2005-01-28T17:56:39 fixed an untested pointer dereference and a & vs && Daniel * xmlschemas.c: fixed an untested pointer dereference and a & vs && Daniel
Kasimier T. Buchcik 87250a97 2005-01-28T15:59:53 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).
Kasimier T. Buchcik e8a550b3 2005-01-27T12:49:31 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.
Daniel Veillard b9e2f26e 2005-01-23T23:48:34 more hash dictionary interning changes Daniel * xmlschemas.c: more hash dictionary interning changes Daniel
Kasimier T. Buchcik f500aec5 2005-01-19T16:30:24 Corrected targetNamespace in xmlSchemaElementDump. Cosmetic changes to the * xmlschemas.c: Corrected targetNamespace in xmlSchemaElementDump. Cosmetic changes to the dump output.
Kasimier T. Buchcik 31113c7e 2005-01-13T16:57:20 Exposed targetNamespace for simple/complex types, model groups, attribute * include/libxml/schemasInternals.h xmlschemas.c: Exposed targetNamespace for simple/complex types, model groups, attribute groups and notations (reported by Michael Hewarth to the mailing list). Added targetNamespace to xmlSchemaType, xmlSchemaAttributeGroup and xmlSchemaNotation. Tiny cosmetic change to the content model error report output. * result//all_*.err result//any3_0_0.err result//choice_*.err result//list0_0_1.err result//list0_1_1.err: Adapted output of regression tests.
Kasimier T. Buchcik de938cd4 2005-01-13T12:25:57 Put the fix of Daniel (from Tue Jan 11 14:41:47 CET) back in, since I * xmlschemas.c: Put the fix of Daniel (from Tue Jan 11 14:41:47 CET) back in, since I missed to update xmlschemas.c before doing the previous commit.
Kasimier T. Buchcik c3af19d1 2005-01-13T12:10:11 Integrated xmlRegExecErrInfo and xmlRegExecNextValues from xmlregexp.c to * xmlschemas.c: Integrated xmlRegExecErrInfo and xmlRegExecNextValues from xmlregexp.c to report expected elements on content model errors. * all_*.err any3_0_0.err choice_*.err list0_0_1.err list0_1_1.err: Adapted output of regression tests.
Daniel Veillard 618732b6 2005-01-11T13:43:13 fixed bug #163641 when the value passed for an atomic list type is NULL. * xmlschemas.c: fixed bug #163641 when the value passed for an atomic list type is NULL. Daniel
William M. Brack 21e4ef20 2005-01-02T09:53:13 Re-examined the problems of configuring a "minimal" library. Synchronized the header files with the library code in order to assure that all the various conditionals (LIBXML_xxxx_ENABLED) were the same in both. Modified the API database content to more accurately reflect the conditionals. Enhanced the generation of that database. Although there was no substantial change to any of the library code's logic, a large number of files were modified to achieve the above, and the configuration script was enhanced to do some automatic enabling of features (e.g. --with-xinclude forces --with-xpath). Additionally, all the format errors discovered by apibuild.py were corrected. * configure.in: enhanced cross-checking of options * doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml, doc/libxml2-api.xml, gentest.py: changed the usage of the <cond> element in module descriptions * elfgcchack.h, testapi.c: regenerated with proper conditionals * HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c, testSAX.c: cleaned up conditionals * include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h, hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h, valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]: synchronized the conditionals with the corresponding module code * doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c: added additional conditions required for compilation * doc/*.html, doc/html/*.html: rebuilt the docs
Kasimier T. Buchcik 5dd55d95 2004-11-26T12:35:21 Fixed strict/lax element wildcards: the children of elements for which a * xmlschemas.c: Fixed strict/lax element wildcards: the children of elements for which a declaration existed were still processed by the wildcard mechanism (reported by philippe ventrillon to the mailing list). Changed the import and include machanism to share dictionaries.
Kasimier T. Buchcik 8b41817d 2004-11-17T13:14:27 tiny enhancement for content model error reports (#157190, #143948). * xmlschemas.c: tiny enhancement for content model error reports (#157190, #143948). Removed abbreviations: CT, ST and WC (#157190, reported by Frans Englich). Initial: no report of local components. * 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.
Kasimier T. Buchcik b884124c 2004-11-15T12:11:56 Moved execution of xmlSchemaCheckDefaults to xmlSchemaTypeFixup; this * xmlschemas.c: Moved execution of xmlSchemaCheckDefaults to 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).
Kasimier T. Buchcik 48307f43 2004-11-12T15:16:25 Un-commented a TODO in xmlSchemaParseElement. * xmlschemas.c: Un-commented a TODO in xmlSchemaParseElement.
Kasimier T. Buchcik 91feaf84 2004-11-12T14:04:58 Correct symbol space for 'all' and 'choice'. Added 'replace' normalization * xmlschemas.c: Correct symbol space for 'all' and 'choice'. * xmlschemastypes.c include/xmlschemastypes.h: Added 'replace' normalization for 'normalizedString'. Added xmlSchemaWhiteSpaceReplace to the API.
Daniel Veillard ce682bc2 2004-11-05T17:22:25 autogenerate a minimal NULL value sequence for unknown pointer types This * gentest.py testapi.c: autogenerate a minimal NULL value sequence for unknown pointer types * HTMLparser.c SAX2.c chvalid.c encoding.c entities.c parser.c parserInternals.c relaxng.c valid.c xmlIO.c xmlreader.c xmlsave.c xmlschemas.c xmlschemastypes.c xmlstring.c xpath.c xpointer.c: This uncovered an impressive amount of entry points not checking for NULL pointers when they ought to, closing all the open gaps. Daniel
Daniel Veillard 6927b106 2004-10-27T17:29:04 preparing release 2.6.15 cleanups Daniel * ChangeLog NEWS configure.in doc/*: preparing release 2.6.15 * debugXML.c nanoftp.c xmlschemas.c xmlschemastypes.c: cleanups Daniel
Daniel Veillard 1a380b89 2004-10-21T16:00:06 fixed a memory bug added test from Graham Bennett and regenerated the * xmlschemas.c: fixed a memory bug * doc/examples/reader4.c doc/examples/*: added test from Graham Bennett and regenerated the directory Daniel
Kasimier T. Buchcik 87876407 2004-09-29T13:29:03 Parsing of <complexContent> - handle attribute 'mixed', catch illegal * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h include/libxml/schemasInternals.h: Parsing of <complexContent> - handle attribute 'mixed', catch illegal attributes. Parsing of <complexType> - handle attributes 'abstract', 'final' and 'block', catch illegal attributes. Validation of complex types - handle abstract types. Added handling of default/fixed attributes and element values. Per validation option attribute nodes/text nodes are created on the instance. Added the corresponding constraints for fixed/default. Added xmlSchemaSetValidOptions, xmlSchemaGetValidOptions to the external API. Extended element declaration constraints. Got rid of perseverative creation of temporery validation/parser contexts. Added handling of xsi:schemaLocation and xsi:noNamespaceSchemaLocation. Fixed xsi:type component resolution if using non-prefixed QNames. * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: Enabled namespace awareness of the content model if using the model group "all". * test/schemas/bug152470_1.xsd: Removed an "abstract" attribute, which broke the test. * xstc/xstc.py: Workaround to accomodate case insensitive test definitions in ms-test.def.xml (was missing in a previous commit).
Daniel Veillard c7e3cc49 2004-09-28T12:33:52 another patch from Malcolm Tredinnick fixing warning generated by the * acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c xmlschemastypes.c: another patch from Malcolm Tredinnick fixing warning generated by the Nonstop Kernel Open System Services compiler #151710 Daniel
Daniel Veillard 079f6a75 2004-09-23T13:15:03 more memory related code cleanups. Daniel * HTMLparser.c parser.c relaxng.c xmlschemas.c: more memory related code cleanups. Daniel
Kasimier T. Buchcik 876a6db1 2004-09-16T11:31:52 Simpified attribute wildcard creation and assignment to get rid of memory * xmlschemas.c include/libxml/schemasInternals.h test/schemas/bug152470_1.* result/schemas/bug152470_1_1*: Simpified attribute wildcard creation and assignment to get rid of memory leaks. Restructured the validation process. Restructured and expanded parsing of <attributeGroup>. Added initial handing of xsi:type. Advanced handling of xsi:nil (should work now for simple types). Added construction of schemata using xsi:schemaLocation and xsi:noNamespaceSchemaLocation; this is not enabled, since no corresponding API exists yet. Moved the content model to complex type components. Resolution of types for attributes will look for simple types only (incl. all the built-in simple types). Extended parsing of 'anyAttribute'. Fixed content-type type for complex types if derived from 'anyType' using the short-hand form (see bug # 152470, submitted by Thilo Jeremias). * include/libxml/xmlschematypes.h: Cleaned up some comments. * xstc/xstc.py: Workaround to accomodate case insensitive test definitions in ms-test.def.xml. * result/schemas/deter0_0_0.err result/schemas/ns0_0_2.err result/schemas/ns0_1_2.err: Adapted.
Kasimier T. Buchcik 5eba91f2 2004-09-08T09:17:27 Added the function xmlSchemaValidateOneElement to the XML Schema * xmlschemas.c include/libxml/xmlschemas.h: Added the function xmlSchemaValidateOneElement to the XML Schema validation API, as proposed by Jeffrey Fink - see bug # 152073.
Kasimier T. Buchcik 383434b2 2004-09-03T18:55:35 Fixed a seg fault in xmlGetQNameProp: a format argument was missing. Fixed * xmlschemas.c include/libxml/schemasInternals.h include/libxml/xmlerror.h: Fixed a seg fault in xmlGetQNameProp: a format argument was missing. Fixed wrong assignment of the owner of a wildcard in xmlSchemaBuildAttributeValidation (in the shorthandform of <complexType>; this caused a seg fault, due to a double-free of the wildcard. Added a check for circular attribute group references. Added a check for circular model group definition references. Fixed a dublicate xmlParserErrors enum value - see bug #151738.
Kasimier T. Buchcik b4a9e64f 2004-08-30T10:56:53 Fixed a bug in xmlSchemasCheckFacet, which did not create a computed value * xmlschemas.c: Fixed a bug in xmlSchemasCheckFacet, which did not create a computed value on a facet and thus crashed during validation of instances. Expanded validity checks for min/maxOccurs attributes. Expanded validity checks for the value of the attribute "form".
Kasimier T. Buchcik bea2354a 2004-08-25T20:35:45 Added missing test file. Substituted the obsolete xmlSchemaValidError(s) * test/schemas/import-bad-1_0.imp: Added missing test file. * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h: Substituted the obsolete xmlSchemaValidError(s) for xmlParserErrors - see #150840. Changed the import of schemas to allow failure of location of a resource to be imported. * result/schemas/all_* result/schemas/any3_0_0.err result/schemas/choice_* result/schemas/import1_0_0.err result/schemas/list0_0_1.err result/schemas/list0_1_0.err result/schemas/list0_1_1.err result/schemas/ns0_0_2.err result/schemas/ns0_1_2.err: Adapted regression test results.
William M. Brack 2f2a6632 2004-08-20T23:09:47 modified parsing of <list>, <union>, <restriction>, <sequence>, <choice>, * xmlschemas.c: modified parsing of <list>, <union>, <restriction>, <sequence>, <choice>, <include>, <import>. Fixed schema defaults (elementFormDefault, etc.) for included schemas. Fixed a bug which reported attributes as invalid on elements declarations with the built-in type 'anyType'. Added "lax" validation of the content of elements of type 'anyType'. Fixed: element declarations with the same name were treated as duplicate if located in the subtree of <choice> -> <sequence>. (This was bug 150623, submitted by Roland Lezuo) Fixed cleanup of error codes in xmlSchemaValidateDoc as proposed by Igor Kapitanker. (This was bug 150647, submitted by Igor Kapitanker) * xmlschemastypes.c: Changed the type of anyType to XML_SCHEMAS_ANYTYPE. * include/libxml/xmlerror.h: Added schema parser errors. * result/schemas/bug145246_0_0* result/schemas/extension1_0_2.err: Changed test results. * result/schemas/ct-sc-nobase_0_0* result/schemas/facet-whiteSpace_0_0* result/schemas/import1_0_0* result/schemas/import2_0_0* result/schemas/include2_0_0* result/schemas/include3_0_0* result/schemas/restriction-attr1_0_0* result/schemas/seq-dubl-elem1_0_0* result/schemas/xsd-list-itemType_0_0*: Added new rest results. test/schemas/bug145246.xsd.imp test/schemas/ct-sc-nobase_0* test/schemas/facet-whiteSpace_0* test/schemas/import1_0* test/schemas/import2_0* test/schemas/include2_0* test/schemas/include3_0* test/schemas/restriction-attr1_0* test/schemas/seq-dubl-elem1_0* test/schemas/xml.xsd test/schemas/xsd-list-itemType_0*: Added new tests and missing files.
Daniel Veillard 259f0dfa 2004-08-18T09:13:18 Applied patch from Torkel Lyng to add Schemas support to the Python * xmlschemas.c include/libxml/xmlschemas.h python/generator.py python/libxml.c python/libxml_wrap.h python/types.c python/tests/schema.py python/tests/Makefile.am: Applied patch from Torkel Lyng to add Schemas support to the Python bindings and extend the schemas error API, registered a new test. * doc/* elfgcchack.h: rebuilt to regenerate the bindings Daniel
Daniel Veillard da3b29a5 2004-08-14T11:15:13 added a dumb rule to able to compile tst.c when people submit a sample * Makefile.am: added a dumb rule to able to compile tst.c when people submit a sample test program * xmlschemas.c: applied small patch from Eric Haszlakiewicz to document xmlSchemasSetValidErrors() limitations, #141827 * error.c: Add information in generic and structured error setter functions that this need to be done per thread #144308 * xmlsave.c: fixed bug whith missing NOTATION(s) serialization bug #144162 * doc/xmllint.xml: typo fix #144840 Daniel
Daniel Veillard c0826a77 2004-08-10T14:17:33 applied Schemas patches from Kasimier Buchcik lot of new tests for things * configure.in xmlregexp.c xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h include/libxml/xmlerror.h include/libxml/xmlschemastypes.h: applied Schemas patches from Kasimier Buchcik * test/ result/ bug141333* annot-err* any[1-4]* bug145246* element-err* element-minmax-err* include1* restrict-CT-attr-ref*: lot of new tests for things fixed by the patch Daniel
Daniel Veillard f4b05d0a 2004-07-05T13:10:37 applied patch from Kasimier to fix some Relax-NG datatype facet problem * xmlschemas.c: applied patch from Kasimier to fix some Relax-NG datatype facet problem with recent changes. Daniel
William M. Brack 96d2effc 2004-06-30T11:48:47 warning message cleanup. Now compiles warning-free, all tests passed. * xmlschemas.c, xmlschemastypes.c: warning message cleanup. Now compiles warning-free, all tests passed. * SAX2.c: small change to comments for documentation. No change to logic.
Daniel Veillard b7c6ac44 2004-06-29T22:01:27 more fixes with Kasimier, looks far cleaner :-) Daniel * xmlschemas.c: more fixes with Kasimier, looks far cleaner :-) Daniel
Daniel Veillard 4e5d6652 2004-06-29T21:01:12 Kasimier Buchcik fixed the memory access and allocation problem Daniel * xmlschemas.c: Kasimier Buchcik fixed the memory access and allocation problem Daniel
Daniel Veillard 01fa6156 2004-06-29T17:04:39 applied Schemas patches from Kasimier Buchcik, there is still one open * xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h include/libxml/schemasInternals.h include/libxml/xmlschemastypes.h: applied Schemas patches from Kasimier Buchcik, there is still one open issue about referencing freed memory. * test/schemas/* result/schemas/*: updated with new tests from Kasimier Daniel