xnsdoc - Bug-24
Description
Missing braces in model-description of a complex content model might lead to missleading and wrong presentation of the model.
Comments
The following schema reproduces the problem.
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="foo">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="a"/>
<xs:element name="b"/>
</xs:sequence>
<xs:element name="c"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>Release 1.2.2 generates the following content model description:
<foo> a, b, c | d, e </foo>
But the correct content model would be
<foo> a, (b, c | d), e </foo>





