I use standard UML within Enterprise Architect and want to generate an xsd out of a model. I know I can transform the model to have types with XSDComplexType stereotype etc. and modify it afterwards (everytime after transform?) or attach them directly but I want to be as much agnostic of xsd as possible.
This is what I get when using UML class, value is attribute:
<xs:complexType name="Longitude">
<xs:sequence>
<xs:element name="value" type="xs:double" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
This is what I get when using UML enumeration:
<xs:simpleType name="Longitude">
<!-- where to define that? e.g. to be double instead, string is default -->
<xs:restriction base="xs:string"/>
</xs:simpleType>
This is what I want to achieve as output instead of the above:
<xs:simpleType name="Longitude">
<xs:restriction base="xs:double">
<minInclusive value="0.0"/>
<maxInclusive value="359.99999999"/>
</xs:restriction>
</xs:simpleType>
What UML type to use and where are to "fields/tags" to use for the wanted output?
<<XSDsimpleType>>
– qwerty_so