1
Uml Process / Generate XML schema - XSD Simple type - ISO TC211
« on: June 14, 2016, 11:35:37 pm »
Hello,
I'm trying to implement a new XSD simple type "NonEmptyString", with at least one character (minLength set at 1, plus a pattern), under the UML Profile for INSPIRE directive.
I tried by creating a new class, setting its stereotype to type, then generalizing from the CharacterString type in INSPIRE specifications (ISO TC211 repository), and adding a minLength attribute with default value set to 1. ==> FAIL. Creates the class, but with an attribute named minLength.
I tried that, generalizing from the "string" element in the UML profile for XML schema, and creating a class with the type XSDSimpleType as a stereotype, and setting the type to string, then under the UML menu, setting the minLength tag value at 1 (thus doing a restriction). ==> FAIL. Does not create the class at all.
Many thanks for any hypothesis you may have to provide.
I'm trying to implement a new XSD simple type "NonEmptyString", with at least one character (minLength set at 1, plus a pattern), under the UML Profile for INSPIRE directive.
I tried by creating a new class, setting its stereotype to type, then generalizing from the CharacterString type in INSPIRE specifications (ISO TC211 repository), and adding a minLength attribute with default value set to 1. ==> FAIL. Creates the class, but with an attribute named minLength.
I tried that, generalizing from the "string" element in the UML profile for XML schema, and creating a class with the type XSDSimpleType as a stereotype, and setting the type to string, then under the UML menu, setting the minLength tag value at 1 (thus doing a restriction). ==> FAIL. Does not create the class at all.
Many thanks for any hypothesis you may have to provide.
should you want to unset the stereotype, click, in that interface, the "UML" button, and unset the stereotype (learned the hard way not to ignore the button).