ETSI's Bug Tracker - Part 09: Using XML with TTCN-3
View Issue Details
0004268Part 09: Using XML with TTCN-3Technicalpublic13-10-2008 09:1030-10-2008 15:15
Gyorgy Rethy 
Gyorgy Rethy 
normalminoralways
closedfixed 
 
v4.1.1 (published 2009-06)v4.1.1 (published 2009-06) 
6.1.5
     
0004268: Missing encoding instruction in $61.5 example2
This example shows the mapping of an enumeration facet, where the restriction base is integer to a TTCN-3 enumerated type. In this case the enumeration names are artificial and the encoded XML component shall contain the integer values, not the TTCN-3 enumeration names. The encoder shall be instructed to do so.
Change the TTCN-3 derivation from:
    //Is mapped to the TTCN-3 type definition:
    type enumerated Integer_0_5_10 {int0(0), int5(5), int10(10)}
        with { variant "name as uncapitalized" }
TO:
    //Is mapped to the TTCN-3 type definition:
    type enumerated Integer_0_5_10 {int0(0), int5(5), int10(10)}
        with { variant "name as uncapitalized";
               variant "use number"
         }
No tags attached.
Issue History
13-10-2008 09:10Gyorgy RethyNew Issue
13-10-2008 09:10Gyorgy RethyStatusnew => assigned
13-10-2008 09:10Gyorgy RethyAssigned To => Gyorgy Rethy
13-10-2008 09:10Gyorgy RethyClause Reference(s) => 6.1.5
13-10-2008 09:10Gyorgy RethySource (company - Author) =>
15-10-2008 10:03Gyorgy RethyAssigned ToGyorgy Rethy => Ina Schieferdecker
15-10-2008 17:38Ina SchieferdeckerNote Added: 0007080
15-10-2008 17:39Ina SchieferdeckerAssigned ToIna Schieferdecker => Gyorgy Rethy
15-10-2008 17:39Ina SchieferdeckerResolutionopen => fixed
15-10-2008 17:39Ina SchieferdeckerTarget Version => Edition 4.1.1 (not yet published)
30-10-2008 15:15Gyorgy RethyStatusassigned => closed
30-10-2008 15:15Gyorgy RethyNote Added: 0007225
30-10-2008 15:15Gyorgy RethyFixed in Version => Edition 4.1.1 (not yet published)

Notes
(0007080)
Ina Schieferdecker   
15-10-2008 17:38   
In principle ok, however, the additional encoding variant "use number" should be explained in clause 6.1.5:

In this case the enumeration names are artificial and the encoded XML component shall contain the integer values, not the TTCN-3 enumeration names. The encoder shall be instructed to do so with the variant attribute "use number".
(0007225)
Gyorgy Rethy   
30-10-2008 15:15   
Done in master copy, including the sentence explaining the "use number" attribute.