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

ID | Project | Category | View Status | Date Submitted | Last Update
0007656 | Part 09: Using XML with TTCN-3 | Technical | public | 20-03-2017 12:58 | 05-01-2018 11:19

Reporter | Tomas Urban |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.7.1 (published 2016-07) |
Target Version | v4.9.1 (published 2018-05) | Fixed in Version | v4.9.1 (published 2018-05) |
Clause Reference(s) | 7.6.1
For STF discussion |
Source (company - Author) | STF 521

Summary | 0007656: Invalid examples on simple content mapping

Description

In the section 7.6.1.1 on mapping of simple content, there's a following XSD type:
<xsd:complexType name="complex-base-simple">
<xsd:simpleContent>
<xsd:extension base="xsd:integer"/>
</xsd:simpleContent>
</xsd:complexType>
In my opinion, it shall be mapped to:
type XSD.Integer Complex_base_simple
with {
variant "name as 'complex-base-simple'";
};
That's because the existing rules states: "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."
The XSD type definition shown above fullfils all conditions stipulated by the rule: there are no additional attributes nor facets (which is actually always true as simple content extensions never contain any facets). Nevertheless, the mapping used in the example is different from the one I consider correct:
type record Complex_base_simple
{
XSD.Integer base
}
with {
variant "name as 'complex-base-simple'";
variant (base) "untagged";
};
The same problem affects the example 1 on simple content restriction in 7.6.1.2

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

Relationships

related to | 0006867 | closed | Gyorgy Rethy | Handling XSD type aliases

Attached Files | CR7656-v1.docx (164,207) 27-07-2017 12:38 http://oldforge.etsi.org/mantis/file_download.php?file_id=3665&type=bug

Issue History
Date Modified | Username | Field | Change
20-03-2017 12:58 | Tomas Urban | New Issue |
06-06-2017 14:29 | Jens Grabowski | Note Added: 0014632 |
06-06-2017 14:29 | Jens Grabowski | Assigned To | => Tomas Urban
06-06-2017 14:29 | Jens Grabowski | Status | new => assigned
25-07-2017 08:19 | Tomas Urban | Description Updated | bug_revision_view_page.php?rev_id=428#r428
26-07-2017 10:31 | Tomas Urban | Relationship added | related to 0006867
26-07-2017 10:33 | Jens Grabowski | Note Added: 0014780 |
27-07-2017 12:38 | Tomas Urban | File Added: CR7656-v1.docx |
27-07-2017 12:39 | Tomas Urban | Note Added: 0014786 |
27-07-2017 12:39 | Tomas Urban | Assigned To | Tomas Urban => KristÃ³f Szabados
27-07-2017 12:39 | Tomas Urban | Status | assigned => confirmed
04-09-2017 13:17 | KristÃ³f Szabados | Note Added: 0014812 |
04-09-2017 13:17 | KristÃ³f Szabados | Status | confirmed => resolved
04-09-2017 13:17 | KristÃ³f Szabados | Resolution | open => fixed
04-09-2017 13:17 | KristÃ³f Szabados | Assigned To | KristÃ³f Szabados => Gyorgy Rethy
05-01-2018 11:19 | Gyorgy Rethy | Note Added: 0015008 |
05-01-2018 11:19 | Gyorgy Rethy | Status | resolved => closed
05-01-2018 11:19 | Gyorgy Rethy | Fixed in Version | => v4.9.1 (published 2018-05)
05-01-2018 11:19 | Gyorgy Rethy | Target Version | => v4.9.1 (published 2018-05)

Notes

(0014632)
Jens Grabowski
06-06-2017 14:29

Tomas, to prepare discussion.

(0014780)
Jens Grabowski
26-07-2017 10:33

STF discussion: Tomas to write a proposal. Further discussion with György required (via Kristof). Originial CR introduced an non-backwards compatible change.

(0014786)
Tomas Urban
27-07-2017 12:39

Resolved by keeping the rule and changing the examples mentioned in the CR. Please check.

(0014812)
KristÃ³f Szabados
04-09-2017 13:17

Looks fine for me.

(0015008)
Gyorgy Rethy
05-01-2018 11:19

Added to draft V4.8.3.