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

ID | Project | Category | View Status | Date Submitted | Last Update
0007817 | Part 09: Using XML with TTCN-3 | Technical | public | 05-12-2018 08:50 | 12-03-2019 14:33

Reporter | Tomas Urban |
Assigned To |  |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | no change required |
Platform |  | OS |  | OS Version |
Product Version | v4.9.1 (published 2018-05) |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | 7.6.1.1
For STF discussion |
Source (company - Author) | Elvior

Summary | 0007817: Invalid conversion of complex type with simple content in example

Description

The example 1 of 7.6.1.1 converts two types correctly as a synonym type, but the first type called "complex-base-simple" is converted to a type with a record wrapper.
This should not be the case, because there's no exception to the synonym rule: "If the definition of a new named or unnamed complex type uses another simple or complex type as the base of the extension without changing the base type (i.e. no facet is applied and no attribute is added), it shall be translated to a TTCN-3 type synonym to the base type (see clause 6.4 of ETSI ES 201 873-1 [1]), completed with necessary additional encoding instructions (see clause 7.6 rule 1)."
The correct result of the conversion should be:
type XSD.Integer Complex_base_simple
with {
variant "name as 'complex-base-simple'"
}

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

Issue History
Date Modified | Username | Field | Change
05-12-2018 08:50 | Tomas Urban | New Issue |
15-12-2018 08:38 | KristÃ³f Szabados | Note Added: 0015280 |
17-12-2018 09:34 | Tomas Urban | Note Added: 0015281 |
17-12-2018 09:34 | Tomas Urban | Status | new => closed
17-12-2018 09:34 | Tomas Urban | Resolution | open => no change required

Notes

(0015280)
KristÃ³f Szabados
15-12-2018 08:38

I might be missing something, but the result mentioned to be correct looks like the same as the one in section 7.6.1.1 at the bottom of the page. " type XSD.Integer Complex_base_simple with { variant "name as 'complex-base-simple'" }; "

(0015281)
Tomas Urban
17-12-2018 09:34

Correct. Unfortunately I checked the older standard where the example wasn't corrected. Changed to closed.