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

ID | Project | Category | View Status | Date Submitted | Last Update
0006867 | Part 09: Using XML with TTCN-3 | New Feature | public | 15-01-2015 09:58 | 26-07-2017 10:31

Reporter | Gyorgy Rethy |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.6.1 (published 2015-06) |
Target Version | v4.7.1 (published 2016-07) | Fixed in Version | v4.7.1 (published 2016-07) |
Clause Reference(s) | 7.5.1, 7.6
For STF discussion |
Source (company - Author) | L.M.Ericsson

Summary | 0006867: Handling XSD type aliases

Description

XSD allows defining type aliases both by using <restriction> or <extension>, but not adding effective changes or new components to the base type.
It is proposed to add new mapping rules that in this cases in TTCN-3 type aliases shall be generated. This would increase readibility and alignment of the generated TTCN-3 module with the XSD specification.
Note, that this new rule is fully backward compatible.
If accepted, will need also changing NewC1 definition in Annex C Example 3.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.

Relationships

related to | 0007656 | closed | Gyorgy Rethy | Invalid examples on simple content mapping

Attached Files | CR6867_resolution_v1.docx (111,483) 05-08-2015 16:56 http://oldforge.etsi.org/mantis/file_download.php?file_id=3237&type=bug CR6867_resolution_v2.docx (116,284) 06-08-2015 12:05 http://oldforge.etsi.org/mantis/file_download.php?file_id=3245&type=bug CR6867_resolution_v3.docx (117,764) 15-10-2015 14:42 http://oldforge.etsi.org/mantis/file_download.php?file_id=3325&type=bug

Issue History
Date Modified | Username | Field | Change
15-01-2015 09:58 | Gyorgy Rethy | New Issue |
14-05-2015 10:07 | Gyorgy Rethy | Target Version | => v4.7.1 (published 2016-07)
03-08-2015 14:30 | Gyorgy Rethy | Note Added: 0013037 |
03-08-2015 14:31 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
03-08-2015 14:31 | Gyorgy Rethy | Status | new => assigned
05-08-2015 16:56 | Gyorgy Rethy | File Added: CR6867_resolution_v1.docx |
05-08-2015 16:57 | Gyorgy Rethy | Note Added: 0013091 |
05-08-2015 16:57 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Jacob Wieland - Spirent
05-08-2015 16:57 | Gyorgy Rethy | Status | assigned => confirmed
06-08-2015 07:45 | Jacob Wieland - Spirent | Note Added: 0013096 |
06-08-2015 07:45 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
06-08-2015 07:45 | Jacob Wieland - Spirent | Status | confirmed => assigned
06-08-2015 09:28 | Gyorgy Rethy | Note Added: 0013101 |
06-08-2015 09:38 | Jacob Wieland - Spirent | Note Added: 0013102 |
06-08-2015 09:52 | Gyorgy Rethy | Note Added: 0013106 |
06-08-2015 09:52 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Jacob Wieland - Spirent
06-08-2015 12:05 | Jacob Wieland - Spirent | File Added: CR6867_resolution_v2.docx |
06-08-2015 12:05 | Jacob Wieland - Spirent | Note Added: 0013115 |
06-08-2015 12:05 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
06-08-2015 12:05 | Jacob Wieland - Spirent | Status | assigned => confirmed
15-10-2015 14:42 | Gyorgy Rethy | File Added: CR6867_resolution_v3.docx |
15-10-2015 14:42 | Gyorgy Rethy | Note Added: 0013418 |
15-10-2015 14:42 | Gyorgy Rethy | Status | confirmed => resolved
15-10-2015 14:42 | Gyorgy Rethy | Fixed in Version | => v4.7.1 (published 2016-07)
15-10-2015 14:42 | Gyorgy Rethy | Resolution | open => fixed
04-12-2015 14:54 | Gyorgy Rethy | Product Version | => v4.6.1 (published 2015-06)
04-12-2015 14:54 | Gyorgy Rethy | Note Added: 0013556 |
04-12-2015 14:54 | Gyorgy Rethy | Status | resolved => closed
26-07-2017 10:31 | Tomas Urban | Relationship added | related to 0007656

Notes

(0013037)
Gyorgy Rethy
03-08-2015 14:30

STF discussion 03-08-2015: prepare concrete proposal.

(0013091)
Gyorgy Rethy
05-08-2015 16:57

Proposed solution is uploaded in CR6867_resolution_v1.docx. Please check.

(0013096)
Jacob Wieland - Spirent
06-08-2015 07:45

I think the solution is inconsistent, as the new rules contradict the rule(s) in the containing section 7.6.
"Globally defined XSD complexType-s shall be translated to a TTCN-3 record type."
"Locally defined anonymous complexTypes shall be ignored. In this case the record type generated for the parent element of the complexType (see clause 7.3), shall enframe the fields resulted by mapping the content (the children) of the XSD complexType."
In the case of empty restriction/extension (no matter what kind of content is the base), you always create either global Subtype Definition (without constraints) in case of a global complex type or a local anonymous complex type of a toplevel element or a Type Reference to the Base Type for anonymous complex types inside local elements. Neither of these is a record definition.
I propose to describe the special case of non-extension/restriction in the main section 7.6. Maybe as a general rule that derived complex types with empty restriction/extension are mapped to References of the TTCN-3 element corresponding to their base type.

(0013101)
Gyorgy Rethy
06-08-2015 09:28

OK, than I propose a general rule in clause 7.6 identified with some name (like "type synonym mapping case"), referring to this general rule in the subclauses (e.g. in cases other than the type synonym case in clause 7.6) and leave the examples in the subclauses for demonstration purposes.

(0013102)
Jacob Wieland - Spirent
06-08-2015 09:38

sounds good to me

(0013106)
Gyorgy Rethy
06-08-2015 09:52

Please prepare a new version of the resolution acc. to what has been agreed.

(0013115)
Jacob Wieland - Spirent
06-08-2015 12:05

done, please review

(0013418)
Gyorgy Rethy
15-10-2015 14:42

Final resolution is in CR6867_resolution_v3.docx. Only editorial changes to ~v2.

(0013556)
Gyorgy Rethy
04-12-2015 14:54

Added to draft V4.6.3