xsd2ttcn: The type of the attributes does not follow the changed type name when nameconversion is present
Submitted by Bence Janos Szabo
Assigned to Bence Janos Szabo
Link to original bug (#510610)
Description
<xs:element name="MyString_"/> <xs:simpleType name="MyString"> <xs:restriction base="xs:string"> <xs:pattern value="fix"/> </xs:restriction> </xs:simpleType>
<xs:complexType name="Complex"> xs:sequence </xs:sequence> <xs:attribute name="AttrfixedMyString" type="this:MyString"/> </xs:complexType>
The Complex type generates into this:
type XSD.String MyString_1 (pattern "fix") with { variant "name as 'MyString'"; };
type record Complex { MyString attrfixedMyString optional, } with { variant (attrfixedMyString) "defaultForEmpty as c_defaultForEmpty_13"; variant (attrfixedMyString) "name as capitalized"; variant (attrfixedMyString) "attribute"; };
Instead of this:
type XSD.String MyString_1 (pattern "fix") with { variant "name as 'MyString'"; };
type record Complex { MyString_1 attrfixedMyString optional, } with { variant (attrfixedMyString) "defaultForEmpty as c_defaultForEmpty_13"; variant (attrfixedMyString) "name as capitalized"; variant (attrfixedMyString) "attribute"; };
Version: 5.5.0