Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 112
    • Issues 112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse Titan
  • titan.core
  • Issues
  • #399
Closed
Open
Issue created Jul 19, 2018 by Eclipse Webmaster@webmasterOwner

incorrect code generated by the xsd conversion

Submitted by Kristof Szabados

Link to original bug (#537169)

Description

based on this code:

		`<simpleType name="e21unnamed">`
		`<union>`				
			`<simpleType>`
				<restriction base="float"/>
			`</simpleType>`
			`<simpleType>`
				<restriction base="integer"/>
			`</simpleType>`
			`<simpleType>`
				<restriction base="string"/>
			`</simpleType>`
		`</union>`
	`</simpleType>`
	
		`<element name=" e22">`
		`<simpleType>`
			<restriction base="ns76:e21unnamed">
				<enumeration value="20"/>
				<enumeration value="50.0"/>
				<enumeration value="small-1"/>
			`</restriction>`
		`</simpleType>`
	`</element>`

according to the standard the xsdconversion should generate a record something like this to element e22:

type record E22 {	
	  enumerated {alt_, alt_1, alt_2} xsiType optional,
	  enumerated {x20, x50_0, small_1} content
	}
	with {...}

But instead this code is generated:

type E21unnamed E22 (
                {alt_2:="small-1"},
                {alt_:=20.000000},
                {alt_:=50.000000}
)
with {
  variant "name as ' e22'";
  variant "element";
};

Version: 6.4.0

Edited May 05, 2021 by Adam Knapp
Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent