ETSI's Bug Tracker - Part 09: Using XML with TTCN-3
View Issue Details
0006838Part 09: Using XML with TTCN-3Technicalpublic08-12-2014 14:5930-12-2014 20:28
Tomas Urban 
Gyorgy Rethy 
normalminorN/A
closedfixed 
v4.5.1 (published 2013-04) 
v4.6.1 (published 2015-06)v4.6.1 (published 2015-06) 
7.6.8, 7.6.4
STF 475
0006838: Invalid example 4 in the mixed content section
The example 4 in the chapter 7.6.8 is invalid, because it omits just one field of the record. From the TTCN-3 point of view, it is fine, but the generated XML document won't pass validation (and maybe some codecs won't allow to encode the message too).

The easier fix is just to correct the example. However, it would be worth of considering to change the rules for conversion of the all content (described in 7.6.4) so that this kind of mistake wouldn't be possible, i.e. it would be possible only to omit all or none of the fields of the record that is a result of conversion of the all content with minOccurs=0.
No tags attached.
doc CR6838_resolution_v1.doc (102,400) 23-12-2014 16:09
http://oldforge.etsi.org/mantis/file_download.php?file_id=3206&type=bug
Issue History
08-12-2014 14:59Tomas UrbanNew Issue
23-12-2014 16:08Gyorgy RethyNote Added: 0012574
23-12-2014 16:08Gyorgy RethyAssigned To => Tomas Urban
23-12-2014 16:08Gyorgy RethyStatusnew => confirmed
23-12-2014 16:08Gyorgy RethyTarget Version => v4.6.1 (published 2015-06)
23-12-2014 16:09Gyorgy RethyFile Added: CR6838_resolution_v1.doc
29-12-2014 15:02Gyorgy RethyAssigned ToTomas Urban => Axel Rennoch
29-12-2014 15:02Gyorgy RethyStatusconfirmed => assigned
29-12-2014 15:02Gyorgy RethyStatusassigned => confirmed
29-12-2014 15:30Axel RennochNote Added: 0012588
29-12-2014 15:30Axel RennochNote Added: 0012589
29-12-2014 15:30Axel RennochAssigned ToAxel Rennoch => Gyorgy Rethy
29-12-2014 15:30Axel RennochStatusconfirmed => acknowledged
30-12-2014 18:25Gyorgy RethyStatusacknowledged => resolved
30-12-2014 18:25Gyorgy RethyFixed in Version => v4.6.1 (published 2015-06)
30-12-2014 18:25Gyorgy RethyResolutionopen => fixed
30-12-2014 20:28Gyorgy RethyNote Added: 0012594
30-12-2014 20:28Gyorgy RethyStatusresolved => closed

Notes
(0012574)
Gyorgy Rethy   
23-12-2014 16:08   
Example is corrected, pls. cross-check in CR6838_resolution_v1.doc.

You are correct, if looking at the TTCN-3 definition only, it is possible to define an XML element, invalid according to the schema. To correct this an alternative "native" mapping to TTCN-3 set could be added, but this would require another CR next year.
(0012588)
Axel Rennoch   
29-12-2014 15:30   
The modified example in the resolution looks good. However next year we may talk about some conventions about naming of identifiers for templates etc. ;-)
(0012589)
Axel Rennoch   
29-12-2014 15:30   
you may set the CR to resolved.
(0012594)
Gyorgy Rethy   
30-12-2014 20:28   
Added to draft V4.5.3