xmlschemas.c


Log

Author Commit Date CI Message
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
Daniel Veillard 50355f00 2004-06-08T17:52:16 applied another patch from Kasimier Buchcik for Schema Component * xmlschemas.c include/libxml/xmlerror.h: applied another patch from Kasimier Buchcik for Schema Component Constraints * test/schemas/* result/schemas/*: added the regression tests Daniel
Daniel Veillard 8acdfbf5 2004-06-03T16:00:59 new patch from Kasimier Buchcik for processContents of wildcards attribute * xmlschemas.c: new patch from Kasimier Buchcik for processContents of wildcards attribute handling * test/schemas/anyAttr-* result/schemas/anyAttr-*: added specific regression tests Daniel
William M. Brack 767265dd 2004-06-03T10:50:29 small change to xmlSchemaValidateAttributes, also corrected typo on error * xmlschemas.c: small change to xmlSchemaValidateAttributes, also corrected typo on error code enum. * include/libxml/xmlerror.h: corrected typo on schema error code enum
William M. Brack 803812b9 2004-06-03T02:11:24 minor cosmetic changes, no change to logic. regenerated added a newline at * xmlschemas.c: minor cosmetic changes, no change to logic. * result/schemas/attruse_0_[12].err: regenerated * globals.c: added a newline at end to make gcc happy
Daniel Veillard 3646d646 2004-06-02T19:19:14 applied a patch from Kasimier Buchcik implementing attribute uses and * xmlschemas.c include/libxml/schemasInternals.h include/libxml/xmlerror.h: applied a patch from Kasimier Buchcik implementing attribute uses and wildcards. * test/schemas/* result/schemas/*: added/fixed a bunch of tests Daniel
William M. Brack 9989c7da 2004-05-12T14:39:38 added code in xmlSchemaBuildAContentModel to handle element reference * xmlschemas.c: added code in xmlSchemaBuildAContentModel to handle element reference within the xs:all construct (bug 139897)
William M. Brack 29aa772d 2004-05-12T00:27:56 added code in xmlSchemaBuildContentModel to allow ref in group definition * xmlschemas.c: added code in xmlSchemaBuildContentModel to allow ref in group definition (bug 134411). Also fixed misc compilation warning messages. * result/schema/group0_0_0, result/schema/group0_0_0.err: regenerated (now no error reported).
William M. Brack e709195e 2004-05-11T15:09:58 Applied patches supplied by Kasimier Buchcik. changed test to account for * xmlschemas.c, include/libxml/schemasInternals.h, include/libxml/xmlerror.h: Applied patches supplied by Kasimier Buchcik. * test/schemas/po1_0.xml, test/schemas/po1_0.xsd: changed test to account for above patch.
Daniel Veillard f762755f 2004-04-22T07:15:40 tiny path fixes the "xmlConvertCRNGFile" function name from Kasimier * rngparser.c: tiny path fixes the "xmlConvertCRNGFile" function name from Kasimier Buchcik * xmlschemas.c: recursive xs:extension fix from taihei goi Daniel
Daniel Veillard 2582a338 2004-04-18T19:49:46 work around Microsoft compiler NaN bug raise reported by Mark Vakoc fixed * xpath.c: work around Microsoft compiler NaN bug raise reported by Mark Vakoc * xmlschemas.c include/libxml/schemasInternals.h include/libxml/xmlerror.h: fixed a recusive expection schemas compilation error raised by taihei goi Daniel
William M. Brack 87640d5f 2004-04-17T14:58:15 minor warning cleanup (no change to logic) fixed return value for internal * xmlschemas.c, xmlwriter.c, doc/examples/parse4.c, doc/examples/io2.c: minor warning cleanup (no change to logic) * xinclude: fixed return value for internal function xmlXIncludeLoadFallback (now always 0 or -1)
Daniel Veillard c85d0fec 2004-04-16T16:46:51 applied patches from Kasimier Buchcik for the attribute use support added * xmlschemas.c include/libxml/schemasInternals.h include/libxml/xmlerror.h: applied patches from Kasimier Buchcik for the attribute use support * test/schemas/attruse* result/schemas/attruse*: added the tests to the regression suite. Daniel
Daniel Veillard 377e1a90 2004-04-16T16:30:05 move the TODO as comments as the function while not finished are usable * xmlsave.c: move the TODO as comments as the function while not finished are usable as-is * xmlschemas.c include/libxml/xmlerror.h: patch from Kasimier Buchcik implementing union * test/schemas/union_0_0.x* result/schemas/union_0_0*: added example * python/Makefile.am: applied fix from Mike Hommey Daniel
Daniel Veillard ba0153a6 2004-04-01T10:42:31 small signed-ness patch from Steve Little Daniel * xmlschemas.c: small signed-ness patch from Steve Little Daniel
Daniel Veillard 500a1de5 2004-03-22T15:22:58 applied patch from Alfred Mickautsch for better DTD support. fixed bug * xmlwriter.c include/libxml/xmlwriter.h doc/* : applied patch from Alfred Mickautsch for better DTD support. * SAX2.c HTMLparser.c parser.c xinclude.c xmllint.c xmlreader.c xmlschemas.c: fixed bug #137867 i.e. fixed properly the way reference counting is handled in the XML parser which had the side effect of removing a lot of hazardous cruft added to try to fix the problems associated as they popped up. * xmlIO.c: FILE * close fixup for stderr/stdout Daniel
Daniel Veillard ebcdebd6 2004-03-05T00:15:50 QName handling fixes for the XML Schemas support from Adam Dickmeiss also * xmlschemas.c: QName handling fixes for the XML Schemas support from Adam Dickmeiss * test/schemas/po1_0.xsd: also fix the schemas * test/schemas/ns[12]* result/schemas/ns[12]*: added the specific regression tests Daniel
Daniel Veillard 1aefc862 2004-03-04T11:40:48 applied patch from Adam Dickmeiss for mixed content added his regression * xmlschemas.c: applied patch from Adam Dickmeiss for mixed content * test/schemas/mixed* result/schemas/mixed*: added his regression tests too. Daniel
Daniel Veillard dda22c15 2004-01-24T08:31:30 applied patch from Steve Ball to avoid a double-free. Daniel * include/libxml/schemasInternals.h xmlschemas.c: applied patch from Steve Ball to avoid a double-free. Daniel
Daniel Veillard 65765284 2004-01-08T16:59:30 removed a memory leak remaining from the switch to a dictionnary for * xmlschemas.c: removed a memory leak remaining from the switch to a dictionnary for string allocations c.f. #130891 Daniel
William M. Brack 72ee48d5 2003-12-30T08:30:19 Fixed memory leak reported by Dave Beckett Removed spurious comment * parser.c, xmlmemory.c, include/libxml/xmlmemory.h: Fixed memory leak reported by Dave Beckett * xmlschemas.c: Removed spurious comment reported on the mailing list * xinclude.c, xpath.c, xpointer.c, libxml/include/xpointer.h: Further work on Bug 129967 concerning xpointer range handling and range-to function; much better, but still not complete
William M. Brack 08171918 2003-12-29T02:52:11 edited a couple of comments in accordance with posting on the mailing list * xmlschemas.c: edited a couple of comments in accordance with posting on the mailing list (no logic change) * xpointer.c: working on Bug 129967, added check for NULL nodeset to prevent crash. Further work required. * xpath.c: working on Bug 129967, added code to handle XPATH_LOCATIONSET in RANGETO code, also added code to handle it in xmlXPathEvaluatePredicateResult. Further work required.
William M. Brack b15351e5 2003-12-27T04:34:42 added tests for xs:all to assure minOccurs and maxOccurs <= 1 (Bug 130020) * xmlschemas.c: added tests for xs:all to assure minOccurs and maxOccurs <= 1 (Bug 130020)
William M. Brack cf9eadf7 2003-12-25T13:24:05 fixed missing dictionaries for Memory and Doc parser contexts (problem * xmlschemas.c: fixed missing dictionaries for Memory and Doc parser contexts (problem reported on mailing list) * doc/apibuild.py: small change to prevent duplicate lines on API functions list. It will take effect the next time the docs are rebuilt.
Daniel Veillard b0f397e1 2003-12-23T23:30:53 types might be redefined in includes, quick fix to allow this but lacks * xmlschemas.c include/libxml/schemasInternals.h: types might be redefined in includes, quick fix to allow this but lacks the equality of the redefinition test. Daniel
Daniel Veillard bd2904b9 2003-11-25T15:38:59 added xsd:include support, fixed testSchemas behaviour when a schemas * include/libxml/schemasInternals.h include/libxml/xmlerror.h testSchemas.c xmlschemas.c: added xsd:include support, fixed testSchemas behaviour when a schemas failed to parse. * test/schemas/vdv-* result/schemas/vdv-first5_0_0*: added one test for xsd:include from Eric Van der Vlist Daniel
Daniel Veillard f2a12835 2003-11-24T13:04:35 more XML Schemas fixes based on Eric van der Vlist examples added * xmlregexp.c xmlschemas.c: more XML Schemas fixes based on Eric van der Vlist examples * result/schemas/vdv-first4* test/schemas/vdv-first4*: added regression tests * doc/examples/Makefile.am doc/examples/index.py: do not regenerate the index on make all target, but only on make rebuild to avoid troubles. Daniel
Daniel Veillard be9c6320 2003-11-22T20:37:51 lot of bug fixes, cleanup, starting to add proper namespace support too. * xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h include/libxml/schemasInternals.h: lot of bug fixes, cleanup, starting to add proper namespace support too. * test/schemas/* result/schemas/*: added a number of tests fixed the result from some regression tests too. Daniel
Daniel Veillard 1d913863 2003-11-21T00:28:39 applied patch from Robert Stepanek to start import os schemas support, * xmlschemas.c: applied patch from Robert Stepanek to start import os schemas support, cleaned up stuff and the patch. * test/schemas/import0_0.* result/schemas/import0_0_0*: added test to regression, fixed a few regressions too. Daniel
Daniel Veillard 9d751504 2003-10-29T13:21:47 applied patch from Steve Ball to make a schema parser from a preparsed * xmlschemas.c include/libxml/xmlschemas.h: applied patch from Steve Ball to make a schema parser from a preparsed document. Daniel
William M. Brack 76e95df0 2003-10-18T16:20:14 Changed all (?) occurences where validation macros (IS_xxx) had * include/libxml/parserInternals.h HTMLparser.c HTMLtree.c SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c xpath.c: Changed all (?) occurences where validation macros (IS_xxx) had single-byte arguments to use IS_xxx_CH instead (e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of many warning messages on certain platforms, and also high- lights places in the library which may need to be enhanced for proper UTF8 handling.
Daniel Veillard 659e71ec 2003-10-10T14:10:40 Setting up the framework for structured error reporting, touches a lot of * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
Daniel Veillard 87db3a84 2003-10-10T10:52:58 a bit of cleanup updated with the new result strings Daniel * error.c xmlschemas.c: a bit of cleanup * result/schemas/*.err: updated with the new result strings Daniel
Daniel Veillard d0c9c32f 2003-10-10T00:49:42 cleanup fix a funny typo converted the Schemas code to the new error * Makefile.am: cleanup * encoding.c: fix a funny typo * error.c xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h: converted the Schemas code to the new error handling. PITA, still need to check output from regression tests. Daniel
Daniel Veillard a9cce9cd 2003-09-29T13:20:24 Okay this is scary but it is just adding a configure option to disable * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
Daniel Veillard 34ba3879 2003-07-15T13:34:05 removed some warnings by casting xmlChar to unsigned int and a couple of * DOCBparser.c HTMLparser.c entities.c parser.c relaxng.c xmlschemas.c xpath.c: removed some warnings by casting xmlChar to unsigned int and a couple of others. * xmlschemastypes.c: fixes a segfault on empty hexBinary strings Daniel
Daniel Veillard 2db8c125 2003-07-08T12:16:59 the modules should not import <config.h> directly, some cleanups Peter * nanoftp.c nanohttp.c: the modules should not import <config.h> directly, some cleanups * xmlschemas.c: Peter Sobisch found a nasty bug in the Schemas validation code. Daniel
Daniel Veillard a84c0b30 2003-06-02T16:58:46 commiting some work done while in the Maldives (hence the timezone on the * relaxng.c xmlschemas.c include/libxml/schemasInternals.h: commiting some work done while in the Maldives (hence the timezone on the laptop !) * result/schemas/length3* test/schemas/deter0_* test/schemas/group0_*: some tests added too Daniel
Daniel Veillard 75bb3bbf 2003-05-12T15:25:56 added --schema option to run WXS schema validation tried to improve error * xmllint.c: added --schema option to run WXS schema validation * xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h: tried to improve error reporting in the Schema code, some cleanup too. Daniel
Daniel Veillard 82bbbd4f 2003-05-11T20:16:09 fixed some problems in the handling of errors, and attributes addressed by * xmlschemas.c: fixed some problems in the handling of errors, and attributes addressed by references. * test/schemas/* result/schemas/*: dropped the verbosity level and added a couple of new tests Daniel
Daniel Veillard 37fc84d1 2003-05-09T19:38:15 fixing bug #104081 with xs:all with an element holding minOccurs="0" added * xmlschemas.c: fixing bug #104081 with xs:all with an element holding minOccurs="0" * test/schemas/all_* result/schemas/all_*: added some regression tests for that bug * xmllint.c xmlreader.c: patches from Joerg Schmitz-Linneweber and Garry Pennington to compile without schemas support. Daniel
Daniel Veillard d433046a 2003-04-29T12:40:16 fixing a function comment switching to the XML/XSLT doc generation closing * xmlschemas.c doc/libxml2-api.xml: fixing a function comment * doc/Makefile.am doc/apibuild.py doc/gnome-xml.sgml: switching to the XML/XSLT doc generation closing #111799 * doc/html/*: complete update of the HTML results Daniel
Daniel Veillard d3b9cd88 2003-04-09T11:24:17 update from Charles Bozeman for date and duration types updated too Daniel * xmlschemas.c xmlschemastypes.c include/libxml/xmlschemas.h: update from Charles Bozeman for date and duration types * test/schemas/date_0.* test/schemas/dur_0.* result/schemas/date_0.* result/schemas/dur_0.*: updated too Daniel
Daniel Veillard 91a1325b 2003-03-27T23:44:43 fixed bugs and memory leaks in the W3C XML Schemas code implemented * xmlschemas.c include/libxml/xmlschemas.h: fixed bugs and memory leaks in the W3C XML Schemas code * xmlschemastypes.c: implemented nonPositiveInteger * test/schemas/length2_0.xsd result/schemas/length2_0_0.err: fixed the test and result. Daniel