ETSI's Bug Tracker - Part 09: Using XML with TTCN-3
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0004268 | Part 09: Using XML with TTCN-3 | Technical | public | 13-10-2008 09:10 | 30-10-2008 15:15

Reporter | Gyorgy Rethy |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | always
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | 6.1.5
For STF discussion |
Source (company - Author) |

Summary | 0004268: Missing encoding instruction in $61.5 example2

Description

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"
}

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
13-10-2008 09:10 | Gyorgy Rethy | New Issue |
13-10-2008 09:10 | Gyorgy Rethy | Status | new => assigned
13-10-2008 09:10 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
13-10-2008 09:10 | Gyorgy Rethy | Clause Reference(s) | => 6.1.5
13-10-2008 09:10 | Gyorgy Rethy | Source (company - Author) | =>
15-10-2008 10:03 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
15-10-2008 17:38 | Ina Schieferdecker | Note Added: 0007080 |
15-10-2008 17:39 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Gyorgy Rethy
15-10-2008 17:39 | Ina Schieferdecker | Resolution | open => fixed
15-10-2008 17:39 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
30-10-2008 15:15 | Gyorgy Rethy | Status | assigned => closed
30-10-2008 15:15 | Gyorgy Rethy | Note Added: 0007225 |
30-10-2008 15:15 | Gyorgy Rethy | Fixed 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.