xs choice into xs sequence XML to UML

Discussions about database modeling product Cameo Data Modeler functionalities

Moderator: Moderators

xs choice into xs sequence XML to UML

Postby turbomeca89@gmail.com » Tue Oct 27, 2020 9:19 am

My transformation dont work as expected.

I have imported a xsd file where there is a xs choice into xs sequence.
ref3 work but ref1 and ref2 do not.

Do you know about this?

=================================
<xs:element name="A">
<xs:complexType>
<xs:sequence>
<xs:element ref="ref3"/>
<xs:choice>
<xs:element maxOccurs="1" minOccurs="0" ref="ref1"/>
<xs:element maxOccurs="1" minOccurs="0" ref="ref2"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ref1">
<xs:complexType/>
</xs:element>
<xs:element name="ref2">
<xs:complexType/>
</xs:element>
<xs:element name="ref3">
<xs:complexType/>
</xs:element>
=============================
turbomeca89@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Tue Oct 27, 2020 9:02 am
Full name: turbomeca89

Re: xs choice into xs sequence XML to UML

Postby turbomeca89@gmail.com » Wed Nov 04, 2020 4:18 am

Sorry, maybe more informations.

XSD looks good but it the transformation to UML.
Because XSDchoice is under XSDsequence, XSDChoice do not belong to the A element. XSDsequence belong.
When i delete XSDsequence, XSDchoice belong to A element, so it work nicely.

When into XSDsequence, my XSDchoice appear as an XSDchoice element that is empty. So the transformation to UML tool discard the XSDchoice.
turbomeca89@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Tue Oct 27, 2020 9:02 am
Full name: turbomeca89


Return to Cameo Data Modeler

Who is online

Users browsing this forum: No registered users and 0 guests

cron