Book a Demo

Author Topic: generating xsd element restrictions  (Read 2621 times)

rocketboy2000

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
generating xsd element restrictions
« on: August 09, 2013, 10:10:58 am »
hi there,

i'm using UML Profile for XML and i'm having a hard time generating restrictions below the element level.

so, what i'd like as an outcome:
<xs:element name="password">
  <xs:simpleType>
     <xs:restriction base="xs:string">
       <xs:maxLength value="8"/>
     </xs:restriction>
   </xs:simpleType>
</xs:element>

but I can't seem to do this. I can create a new simpleType class and make the element that type but that would mean i'd have a new class for every string length.

any assistance most appreciated.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: generating xsd element restrictions
« Reply #1 on: August 20, 2013, 09:04:21 am »
try reverse engineering it into EA and see how it is handled.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.