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

ID | Project | Category | View Status | Date Submitted | Last Update
0007427 | Part 09: Using XML with TTCN-3 | Technical | public | 24-03-2016 16:33 | 13-12-2016 17:30

Reporter | Gyorgy Rethy |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | major | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.7.1 (published 2016-07) |
Target Version | v4.8.1 (published 2017-05) | Fixed in Version | v4.8.1 (published 2017-05) |
Clause Reference(s) | 8.2 paragraph 1
For STF discussion |
Source (company - Author) | L.M.Ericsson

Summary | 0007427: Type substitution is limiting replacing built-in XSD types

Description

Current text says:
"This clause is invoked if the XSD simpleType or complexType is referenced by the base attribute of the restriction or extension element information item(s) ..."
However this restricts the substitution of elements of built-in XSD types, while XSD/XML allows this. In the attached example the XSD element is defined to be of type integer, while its instance is of the type xsi:integer_deriv; the XML element validates without error.
Proposed solution: change the text to:
"This clause is invoked if the XSD built-in type, simpleType or complexType is referenced by the base attribute of the restriction or extension element information item(s) ..."

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

Attached Files

typesub.xsd (363) 24-03-2016 16:35
http://oldforge.etsi.org/mantis/file_download.php?file_id=3406&type=bug
typesub.xml (236) 24-03-2016 16:42
http://oldforge.etsi.org/mantis/file_download.php?file_id=3407&type=bug
CR7427_proposal.docx (144,283) 16-11-2016 14:28
http://oldforge.etsi.org/mantis/file_download.php?file_id=3536&type=bug
CR7427_proposal_v2.docx (146,263) 16-11-2016 15:00
http://oldforge.etsi.org/mantis/file_download.php?file_id=3540&type=bug

Issue History
Date Modified | Username | Field | Change
24-03-2016 16:33 | Gyorgy Rethy | New Issue |
24-03-2016 16:34 | Gyorgy Rethy | File Added: typesub.xml |
24-03-2016 16:35 | Gyorgy Rethy | File Added: typesub.xsd |
24-03-2016 16:41 | Gyorgy Rethy | File Deleted: typesub.xml |
24-03-2016 16:42 | Gyorgy Rethy | File Added: typesub.xml |
18-07-2016 10:39 | Jens Grabowski | Assigned To | => KristÃ³f Szabados
18-07-2016 10:39 | Jens Grabowski | Status | new => assigned
17-08-2016 11:57 | Jacob Wieland - Spirent | Target Version | => v4.8.1 (published 2017-05)
16-11-2016 13:22 | KristÃ³f Szabados | Note Added: 0014265 |
16-11-2016 14:28 | KristÃ³f Szabados | File Added: CR7427_proposal.docx |
16-11-2016 14:42 | KristÃ³f Szabados | Status | assigned => confirmed
16-11-2016 14:43 | KristÃ³f Szabados | Assigned To | KristÃ³f Szabados => Axel Rennoch
16-11-2016 14:43 | KristÃ³f Szabados | Status | confirmed => assigned
16-11-2016 15:00 | Axel Rennoch | File Added: CR7427_proposal_v2.docx |
16-11-2016 15:01 | Axel Rennoch | Note Added: 0014272 |
16-11-2016 15:02 | Axel Rennoch | Assigned To | Axel Rennoch => Gyorgy Rethy
16-11-2016 15:03 | Axel Rennoch | Status | assigned => resolved
16-11-2016 15:03 | Axel Rennoch | Resolution | open => fixed
13-12-2016 17:30 | Gyorgy Rethy | Note Added: 0014431 |
13-12-2016 17:30 | Gyorgy Rethy | Status | resolved => closed
13-12-2016 17:30 | Gyorgy Rethy | Fixed in Version | => v4.8.1 (published 2017-05)

Notes

(0014265)
KristÃ³f Szabados
16-11-2016 13:22

If I understand correctly simpleType already includes built-in types.
Section 8.2 has a note:
"
NOTE 1: This definition also includes the case when the type of an element is a built-in XSD data type and one or more user-defined types are derived from this built-in type.
"
Also simpleType is described in section 5.0 in Table 1 as:
"
Defines the simplest types. They may be a built-in type, a list or choice of built-in types and they are not allowed to have attributes.
"

(0014272)
Axel Rennoch
16-11-2016 15:01

small font corrections to the example 1 only

(0014431)
Gyorgy Rethy
13-12-2016 17:30

Added to draft V4.7.2