ETSI's Bug Tracker - Part 09: Using XML with TTCN-3
View Issue Details
0007427Part 09: Using XML with TTCN-3Technicalpublic24-03-2016 16:3313-12-2016 17:30
Gyorgy Rethy 
Gyorgy Rethy 
normalmajorhave not tried
closedfixed 
v4.7.1 (published 2016-07) 
v4.8.1 (published 2017-05)v4.8.1 (published 2017-05) 
8.2 paragraph 1
L.M.Ericsson
0007427: Type substitution is limiting replacing built-in XSD types
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) ..."
No tags attached.
? typesub.xsd (363) 24-03-2016 16:35
http://oldforge.etsi.org/mantis/file_download.php?file_id=3406&type=bug
xml typesub.xml (236) 24-03-2016 16:42
http://oldforge.etsi.org/mantis/file_download.php?file_id=3407&type=bug
docx CR7427_proposal.docx (144,283) 16-11-2016 14:28
http://oldforge.etsi.org/mantis/file_download.php?file_id=3536&type=bug
docx 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
24-03-2016 16:33Gyorgy RethyNew Issue
24-03-2016 16:34Gyorgy RethyFile Added: typesub.xml
24-03-2016 16:35Gyorgy RethyFile Added: typesub.xsd
24-03-2016 16:41Gyorgy RethyFile Deleted: typesub.xml
24-03-2016 16:42Gyorgy RethyFile Added: typesub.xml
18-07-2016 10:39Jens GrabowskiAssigned To => Kristóf Szabados
18-07-2016 10:39Jens GrabowskiStatusnew => assigned
17-08-2016 11:57Jacob Wieland - SpirentTarget Version => v4.8.1 (published 2017-05)
16-11-2016 13:22Kristóf SzabadosNote Added: 0014265
16-11-2016 14:28Kristóf SzabadosFile Added: CR7427_proposal.docx
16-11-2016 14:42Kristóf SzabadosStatusassigned => confirmed
16-11-2016 14:43Kristóf SzabadosAssigned ToKristóf Szabados => Axel Rennoch
16-11-2016 14:43Kristóf SzabadosStatusconfirmed => assigned
16-11-2016 15:00Axel RennochFile Added: CR7427_proposal_v2.docx
16-11-2016 15:01Axel RennochNote Added: 0014272
16-11-2016 15:02Axel RennochAssigned ToAxel Rennoch => Gyorgy Rethy
16-11-2016 15:03Axel RennochStatusassigned => resolved
16-11-2016 15:03Axel RennochResolutionopen => fixed
13-12-2016 17:30Gyorgy RethyNote Added: 0014431
13-12-2016 17:30Gyorgy RethyStatusresolved => closed
13-12-2016 17:30Gyorgy RethyFixed 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