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

ID | Project | Category | View Status | Date Submitted | Last Update
0005655 | Part 09: Using XML with TTCN-3 | Technical | public | 06-08-2010 17:06 | 26-11-2010 15:25

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

Summary | 0005655: Incorrect example e40c
Description | In example 2: elements of the optional sequence and the choice shall not have the same names due to moinOccurs="0" attribute of the sequence.
Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
06-08-2010 17:06 | Gyorgy Rethy | New Issue |
06-08-2010 17:06 | Gyorgy Rethy | Clause Reference(s) | => 7.6.6.6
06-08-2010 17:06 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
06-08-2010 17:43 | Gyorgy Rethy | Summary | Incorrect examples e40c => Incorrect example e40c
30-08-2010 11:28 | Gyorgy Rethy | Status | new => assigned
30-08-2010 11:28 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
26-11-2010 15:24 | Gyorgy Rethy | Note Added: 0009811 |
26-11-2010 15:24 | Gyorgy Rethy | Description Updated |
26-11-2010 15:25 | Gyorgy Rethy | Status | assigned => closed
26-11-2010 15:25 | Gyorgy Rethy | Resolution | open => fixed
26-11-2010 15:25 | Gyorgy Rethy | Fixed in Version | => Edition 4.3.1 (not yet published)
26-11-2010 15:25 | Gyorgy Rethy | Target Version | => Edition 4.3.1 (not yet published)

Notes

(0009811)
Gyorgy Rethy
26-11-2010 15:24

Solution:
<complexType name="e40c">
<sequence>
<sequence minOccurs="0">
<element name="foo" type="string"/>
<element name="bar" type="string"/>
</sequence>
<choice>
<element name="foo1" type="string"/>
<element name="bar1" type="string"/>
</choice>
<element name="ding" type="string"/>
</sequence>
</complexType>
// Is mapped to
type record E40c {
record {
XSD.String foo,
XSD.String bar
} sequence optional,
union {
XSD.String foo1,
XSD.String bar1
} choice,
XSD.String ding
}
with {
variant "name as uncapitalized";
variant(sequence, choice) "untagged"
}