Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362943 - [misc] DOMContentBuilder not visiting first sequence child node under choice
Summary: [misc] DOMContentBuilder not visiting first sequence child node under choice
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 15:33 EDT by aokleung CLA
Modified: 2013-06-19 11:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aokleung CLA 2011-11-04 15:33:54 EDT
Build Identifier: 3.5.2.R35

In visitCMGroup(CMGroup e) of org.eclipse.wst.xml.core.internal.contentmodel.util.DOMContentBuilder, it is not visit the first child node if the current model group e is a CHOICE with minOccurs of 1, and the first child node is a sequence of minOccurs of 1.

Reproducible: Always

Steps to Reproduce:
Here is the xsd file:

<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:csv="http://www.ibm.com/dfdl/CommaSeparatedFormat" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


	<xsd:import namespace="http://www.ibm.com/dfdl/CommaSeparatedFormat" schemaLocation="IBMdefined/CommaSeparatedFormat.xsd"/>
	<xsd:annotation>
		<xsd:appinfo source="http://www.ogf.org/dfdl/">
			<dfdl:format encoding="{$dfdl:encoding}" ref="csv:CommaSeparatedFormat"/>
		</xsd:appinfo>
	</xsd:annotation>

	<xsd:element ibmDfdlExtn:docRoot="true" name="CSV_3">
		<xsd:complexType>
			<xsd:sequence dfdl:separator="%CR;">
				<xsd:element name="header">
					<xsd:complexType>
						<xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
							<xsd:element default="2011-01-01" ibmDfdlExtn:sampleValue="2001-01-01" name="requestDate" type="xsd:date"/>
							<xsd:element default="X12334" name="requestId" type="xsd:string"/>
							<xsd:element default="customerdetails" name="requestType" type="xsd:string"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element dfdl:occursCountKind="parsed" maxOccurs="unbounded" name="customer">
					<xsd:complexType>
						<xsd:sequence dfdl:separatorPolicy="suppressedAtEndLax">
							<xsd:choice>
								<xsd:sequence>
									<xsd:element ibmDfdlExtn:sampleValue="Bob" name="firstname" type="xsd:string"/>
									<xsd:element ibmDfdlExtn:sampleValue="Dyson" name="lastnme" type="xsd:string"/>
									<xsd:element ibmDfdlExtn:sampleValue="true" name="goldmember" type="xsd:boolean"/>
									<xsd:element dfdl:textNumberPattern="#0" ibmDfdlExtn:sampleValue="1" name="housenumber" type="xsd:integer"/>
									<xsd:element dfdl:textNumberPattern="#0" ibmDfdlExtn:sampleValue="2147483647" name="postcode" type="xsd:int"/>
									<xsd:element dfdl:textNumberPattern="#0.###" ibmDfdlExtn:sampleValue="0.0" name="float" type="xsd:float"/>
									<xsd:element dfdl:textNumberPattern="#0.##" ibmDfdlExtn:sampleValue="1.0" name="balance" type="xsd:decimal"/>
								</xsd:sequence>
								<xsd:sequence>
									<xsd:element name="initial" type="xsd:string">
									</xsd:element>
									<xsd:element name="lastname" type="xsd:string">
									</xsd:element>
								</xsd:sequence>
							</xsd:choice>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>



</xsd:schema>