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

ID | Project | Category | View Status | Date Submitted | Last Update
0005883 | Part 09: Using XML with TTCN-3 | Technical | public | 05-05-2011 13:13 | 13-07-2011 16:38

Reporter | Jacob Wieland - Spirent |
Assigned To | Gyorgy Rethy |
Priority | high | Severity | major | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | XSD Language Mapping, section 7.9
For STF discussion |
Source (company - Author) | Testing Technologies - Jacob Wieland

Summary | 0005883: Example is inconsistent for choice-groups.

Description

In section 7.9. the example for the choice group is inconsistent with the sentence
"They shall be mapped the same way as complexTypes with one difference: the "untagged" encoding instruction shall be
attached to the generated TTCN-3 component, corresponding to the group element (but, of course, will always represent
a subset of complex types, as only the above compositors are allowed as child and can never have attributes)."
To be consistent, the example would have to look like this:
type record ShipOrBill {
union {
XSD.String shipTo,
XSD.String billTo
} choice
}
with {
variant "untagged"
}
However, this should be changed to the by far more understandable and usable:
type union ShipOrBill {
XSD.String shipTo,
XSD.String billTo
}
with {
variant "untagged"
}
This would be consistent with the normal XSD semantics where a referenced group signifies the same as if the child of that group were inlined at the point of reference. Since normally, a choice element is mapped to a union type, this should also be done for choice-groups.
Also, since groups can not introduce attributes, it is not necessary to have an additional record layer for choice-groups (as in the complexType case).
Therefore, we propose to change the above sentence to the following:
"They shall be mapped to TTCN-3 type definitions the same way as their child components would be mapped inside a complexType definition with one difference: the "untagged" encoding instruction shall be
attached to the generated TTCN-3 component, corresponding to the group element."
This will only affect the mapping of choice-groups. The mapping of sequence and all groups will stay the same.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR5883_resolution_v1.doc (75,776) 26-05-2011 17:43 http://oldforge.etsi.org/mantis/file_download.php?file_id=2514&type=bug CR5883_resolution_v2.doc (28,672) 27-05-2011 12:31 http://oldforge.etsi.org/mantis/file_download.php?file_id=2518&type=bug

Issue History
Date Modified | Username | Field | Change
05-05-2011 13:13 | Jacob Wieland - Spirent | New Issue |
05-05-2011 13:13 | Jacob Wieland - Spirent | Clause Reference(s) | => XSD Language Mapping, section 7.9
05-05-2011 13:13 | Jacob Wieland - Spirent | Source (company - Author) | => Testing Technologies - Jacob Wieland
24-05-2011 12:18 | Gyorgy Rethy | Note Added: 0010007 |
24-05-2011 12:18 | Gyorgy Rethy | Status | new => assigned
24-05-2011 12:18 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
24-05-2011 19:03 | Gyorgy Rethy | Target Version | => Edition 4.3.2 (interim)
25-05-2011 17:05 | Gyorgy Rethy | Note Edited: 0010007 |
26-05-2011 17:43 | Gyorgy Rethy | File Added: CR5883_resolution_v1.doc |
26-05-2011 17:47 | Gyorgy Rethy | Note Added: 0010093 |
26-05-2011 17:47 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Jacob Wieland - Spirent
27-05-2011 12:31 | Jacob Wieland - Spirent | File Added: CR5883_resolution_v2.doc |
27-05-2011 12:31 | Jacob Wieland - Spirent | Note Added: 0010099 |
27-05-2011 12:32 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
27-05-2011 13:39 | Gyorgy Rethy | Status | assigned => resolved
27-05-2011 13:39 | Gyorgy Rethy | Resolution | open => fixed
13-07-2011 16:38 | Gyorgy Rethy | Status | resolved => closed
13-07-2011 16:38 | Gyorgy Rethy | Note Added: 0010220 |
13-07-2011 16:38 | Gyorgy Rethy | Fixed in Version | => Edition 4.3.2 (interim)

Notes

(0010007)
Gyorgy Rethy
24-05-2011 12:18 (edited on: 25-05-2011 17:05)

3GPP related CR. Proposal is OK, example in the newest version is in line with the proposal. The text shall be corrected, proposed text is OK.

(0010093)
Gyorgy Rethy
26-05-2011 17:47

Resolved as proposed by the CR. See complete resolution text in file CR5883_resolution_v1.doc. Jacob pls. review.

(0010099)
Jacob Wieland - Spirent
27-05-2011 12:31

Just deleted a wrong s (at the end of complexTypes). Otherwise ok.

(0010220)
Gyorgy Rethy
13-07-2011 16:38

Added to master copy.