[xml] "W3C XML Schema patch (simple type)"


Here are some patches for the W3C XML Schema processor of libxml2.

The patches contain the following:

1. Checks for src-simple-type 1, 2, 3, 4 (partly)
2. Checks for st-props-correct
3. Almost all checks cos-st-restricts
4. Checks for cos-st-derived-ok
5. Started support for "final" of complex type
   (for simple type it is already done)
6. Variety of simpleType:
7. "finalDefault"
   New flags:

Please shout if I overly strain the flags with this.

8. Union:
   Added a field "memberTypes" to the xmlSchemaType. This struct
   becomes a "one for all" conglomerate type - not very nice; I hope
   we can split this big mama into some more specialized offshoots in the
   future to prevent it from eating up memory unnecessarily. For now,
   working with just a singe struct for many of the schema toys eases
   the work.
9. Added a xmlSchemaTypeLink to be used by "memberTypes" of a
   Union Simple Type.
10. Partly added support for attribute "fixed" of facets (see TODO below).
11. Partly fixed facets for List Simple Types (see TODO below).
12. Fixed typo in xmlSchemaCompareDecimals; this bug was reported by
   Morgan L. Owens to the mailing-list, but not processed yet
13. Added some checks for type validation of schema attributes (e.g. 
"name", "itemType")
14. An attribute's base type is now the anySimpleType if no types are 
15. Plugged the anyType into the derivation hierarchy of complex types;
   this needed some more adjustments, since the processor tried to
   live without anyType until now. This is still not complete: the 
   of the particle of the content type of anyType is not done yet. This 
intergration is a worry
   to me, and I expect some funny complexTypes to crash, before 
extensive tests for complex
   types are done (the existent regression test won't suffice here).
16. made "xmlSchemaCollapseString" public to be used on values of list 
simple types.
17. Added public "xmlSchemaIsBuiltInTypeFacet" to evaluate if a facet 
can be used in
   conjunction with a built-in type.
18. Fixed default value for "elementFormDefault".
19. ... other things.

Patch files:

xmlschemas.c.diff, xmlschemastypes.c.diff, xmlschemastypes.h.diff,
xmlerror.h.diff, schemasInternals.h.diff

Test files:

facet-unionST-err1_0.xsd - facet-unionST-err1_0.xml
cos-st-restricts-1-2-err_0.xsd - cos-st-restricts-1-2-err_0.xml
cos-ct-extends-1-3_0.xsd - cos-ct-extends-1-3_0.xml
bug143951_0.xsd - bug143951_0.xml - bug143951_0.imp

problems with regression tests:

vdv-first4_0.xsd - vdv-first4_2.xml (does report a wrong line number 
(1), maby due to
   the encoding, on win my editor says that it is "Mac" encoded.)

Changed regression result files:

anyAttr-processContents-err1_0_0.err, attruse_0_1.err, attruse_0_2.err,
extension1_0_1.err, extension1_0_2.err, hexbinary_0_1.err, length3_0_0.err,
vdv-first4_0_1.err,  vdv-first4_0_2.err, ns0_1_1.err, ns0_1_0.err, 

MS-Tests for simple types from the W3C XML Schema test suite:

Passes all tests except:
- tests that process the attribute "id" do fail, since the datatype 
check and uniqueness of this
   attribute is not implemented yet.
- stC003 - fails since the test is not correct (the spec, Xerces and XSV 
are with me here)
- stI005 - fails since the test is not correct (the spec, Xerces and XSV 
are with me here)

Results for the NIST tests are to come...



Attachment: facet-unionST-err1_0.xml
Description: Text Data

Attachment: xmlerror.h.diff
Description: Text Data

Attachment: xmlschemas.c.diff
Description: Text Data

Attachment: xmlschemastypes.c.diff
Description: Text Data

Attachment: xmlschemastypes.h.diff
Description: Text Data

Attachment: anyAttr-processContents-err1_0_0.err
Description: Text document

Attachment: attruse_0_1.err
Description: Text document

Attachment: attruse_0_2.err
Description: Text document

Attachment: extension1_0_1.err
Description: Text document

Attachment: extension1_0_2.err
Description: Text document

Attachment: hexbinary_0_1.err
Description: Text document

Attachment: length3_0_0.err
Description: Text document

Attachment: ns0_0_3.err
Description: Text document

Attachment: ns0_0_4.err
Description: Text document

Attachment: ns0_1_0.err
Description: Text document

Attachment: ns0_1_1.err
Description: Text document

Attachment: vdv-first4_0_1.err
Description: Text document

Attachment: vdv-first4_0_2.err
Description: Text document

Attachment: bug143951_0.xsd
Description: Text Data

Attachment: cos-ct-extends-1-3_0.xsd
Description: Text Data

Attachment: cos-st-restricts-1-2-err_0.xsd
Description: Text Data

Attachment: facet-unionST-err1_0.xsd
Description: Text Data

Attachment: bug143951_0.xml
Description: Text Data

Attachment: cos-ct-extends-1-3_0.xml
Description: Text Data

Attachment: cos-st-restricts-1-2-err_0.xml
Description: Text Data

Attachment: schemasInternals.h.diff
Description: Text Data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]