1 BUGS in MS Implementation of XmlSchema:
\r
3 001. Does not allow duplicate values in lists for final* and block* attributes.
\r
4 For example "restriction restriction" is not allowed even though its a valid
\r
5 value for blockDefault.
\r
7 002. Resets the minOccurs to 0 if maxOccurs="0", whereas it should raise an error.
\r
9 003. Allows abstract="true" in the a localElement whereas it is not allowed.
\r
10 <?xml version="1.0"?>
\r
11 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting" elementFormDefault="qualified">
\r
12 <xsd:element name="doc">
\r
15 <xsd:element name="elem1"/>
\r
16 <xsd:element abstract="true" name="elem2"/> <!--This element is not valid -->
\r
22 004. QName value constraint
\r
24 When xs:QName based type is specified to an attribute or element
\r
25 declaration, MS.NET fails to fill their {value constraints} (i.e.
\r
26 default or fixed value), even though they have those namespace
\r
27 declaration by XmlSerializerNamespaces.
\r
29 005. derivation by extension of xs:all
\r
31 As it is discussed on w3c xmlschema-dev ML, MS System.Xml.Schema
\r
32 incorrectly allows <complexType><complexContent><extension><all>
\r
33 (i.e. XmlSchemaComplexContentExtension that contains XmlSchemaAll)
\r
34 whose base type contains non-empty particle. It is prohibited,
\r
35 because, as XML Schema structures 3.4.2 (complex content Schema
\r
36 Component) {content type} 2.3, complex content extension creates
\r
37 merged particles as a sequence, which never allows 'all' model group
\r
39 See: http://lists.w3.org/Archives/Public/xmlschema-dev/2002Oct/0156.html
\r
41 Below are incorrect W3C test suite in msxsdtest/complexType: ctH013.xsd,
\r
42 ctH019.xsd, ctH020.xsd, ctH021.xsd, ctH022.xsd, ctH023.xsd, ctJ001.xsd
\r
43 and in msxsdtest/ModelGroups: mgA016.xsd, mgO007.xsd (9 testcases).
\r
45 006. xs:all minOccurs="0" not allowed
\r
47 W3C WXS Structures REC. says that model group xs:all is limited to have
\r
48 minOccurs=maxOccurs=1 in case of complexType's content type particle
\r
49 (see 3.8.6 All Group Limited), but this is corrected to allow
\r
51 (see E1-26 of http://www.w3.org/2001/05/xmlschema-errata#Errata1)
\r
53 Related msxsdtest is ParticlesEa022.xsd
\r
55 007. Insufficient unique particle attribution of xs:any
\r
57 MS.NET allows <xs:choice><xs:any /><xs:element ... /></xs:choice>.
\r
59 Related msxsdtests are: ParticlesJd002.xsd, ParticlesJd003.xsd and
\r
60 ParticlesJd004.xsd.
\r
61 ParticlesIb001.xsd is also related, but it is not necessarily said as
\r
62 incorrect. Both elements are of the same type, so *in a sense* they are
\r
63 the same declaration. MSV, XSV and I stands different.
\r
65 008. Occurence Range OK (3.9.6) incorrectly assessed
\r
67 Particles that have maxOccurs="0" looks simply ignored *before*
\r
68 evaluating particle restriction valid, but it might get incorrect
\r
69 result. For example, it is regarded as valid (while 'e1' must occur 1
\r
70 time for the base 'bar' type):
\r
72 <xsd:complexType name="foo">
\r
73 <xsd:complexContent>
\r
74 <xsd:restriction base="bar">
\r
76 <xsd:element name="e1" minOccurs="0" maxOccurs="0"/>
\r
77 <xsd:element name="e2"/>
\r
80 </xsd:complexContent>
\r
83 <xsd:complexType name="bar">
\r
85 <xsd:element name="e1"/>
\r
86 <xsd:element name="e2"/>
\r
90 Related msxsdtest is mgH014.xsd.
\r
92 009. derived list incorrectly allowed
\r
94 "Type Derivation OK" by list simple type of atomic simple type is
\r
95 incorrectly assessed, when the list's {item type definition} (not
\r
96 {base type definition} ) can be assessed as "Type Derivation OK". MSV,
\r
97 XSV and Xerces is not designed to allow such type derivation, and I
\r
98 think they are more correct than MS. That is, MS's schema engine is
\r
99 designed to use such schema typed class like:
\r
101 public class Foo { int notAList; }
\r
103 Normally validates such xml into this class:
\r
107 MS validator consequently allows such instance like:
\r
109 <foo xsi:type="int_list_type">1 2 3</foo>
\r
111 But it cannot be validated into that class Foo.
\r
113 Related msxsdtests are elemT015.xsd and elemT022.xsd.
\r
115 010. derived union incorrectly allowed
\r
117 Similar problem to No.9 above resides in xs:union. Derived union type
\r
118 from atomic type is not naturally allowed.
\r
120 Related msxsdtest is elemT014.xsd.
\r
122 011. schema finalDefault with list and/or union
\r
124 In xs:schema, finalDefault = (#all | List of (extension | restriction)),
\r
125 but MS.NET failed to handle blockDefault='list' as an error.
\r
128 Related msxsdtest is stF034.xsd and stF036.xsd.
\r