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

ID | Project | Category | View Status | Date Submitted | Last Update
0005847 | Part 09: Using XML with TTCN-3 | Technical | public | 10-12-2010 12:38 | 13-07-2011 16:12

Reporter | Jacob Wieland - Spirent |
Assigned To | Gyorgy Rethy |
Priority | high | Severity | major | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | XSD Language Mapping, section 5.1.1 and 5.2.2
For STF discussion |
Source (company - Author) | Testing Technologies - Jacob Wieland

Summary | 0005847: Name Conversion rule and examples in XSD-Mapping are inconsistent (and results unreadable)

Description

According to section 5.1.1 the Name Conversion rule (section 5.2.2) is to be applied to namespace names (or if not present, the identifier NoTargetNamespace) to derive TTCN-3 module names.
There, all characters except alphanumeric, space (which actually is not allowed in XML names), hyphen, full stop and underscore are to be removed (rule c)).
However, namespaces in most cases also contain colon and slash characters to provide structure to the name.
If the conversion rule would be applied to
"www.org.example/1" this would become "www_org_example1" while
"http://www.w3.org/2001/XMLSchema" [^] would become "httpwww_w3_org2001XmlSchema"
Though shorter, these names are far less readable than if the other characters that may occur in namespace-uris would also be replaced by underscore in rule b)
(www_org_example_1 and http_www_w3_org_2001_XmlSchema)
Most examples that map full schemas seem to assume that at least the / character is also replaced by _.
In section 5.1.1 the example strips the http from the namespace, as well which is also inconsistent with the conversion rule.
The examples in annex C also disregard the namespace-to-module conversion rule as most of them would then have the name NoTargetNamespace.
SOLUTION PROPOSAL:
treat all non-alphanumeric name-characters equally in rule b) of 5.2.2 and remove rule c)

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | es_20187309v040203.zip (279,881) 13-04-2011 10:44 http://oldforge.etsi.org/mantis/file_download.php?file_id=2475&type=bug CR5847_resolution_v2.doc (1,433,600) 25-05-2011 17:26 http://oldforge.etsi.org/mantis/file_download.php?file_id=2494&type=bug

Issue History
Date Modified | Username | Field | Change
10-12-2010 12:38 | Jacob Wieland - Spirent | New Issue |
10-12-2010 12:38 | Jacob Wieland - Spirent | Clause Reference(s) | => XSD Language Mapping, section 5.1.1 and 5.2.2
10-12-2010 12:38 | Jacob Wieland - Spirent | Source (company - Author) | => Testing Technologies - Jacob Wieland
10-12-2010 12:50 | Jacob Wieland - Spirent | Description Updated |
13-12-2010 12:46 | Gyorgy Rethy | Project | TTCN-3 Change Requests => Part 09: Using XML with TTCN-3
13-12-2010 12:47 | Gyorgy Rethy | Target Version | => Edition 4.3.2 (interim)
13-04-2011 10:44 | Gyorgy Rethy | File Added: es_20187309v040203.zip |
13-04-2011 10:48 | Gyorgy Rethy | Note Added: 0009995 |
13-04-2011 10:50 | Gyorgy Rethy | Note Edited: 0009995 |
13-05-2011 10:32 | Gyorgy Rethy | Status | new => assigned
13-05-2011 10:32 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
24-05-2011 19:23 | Gyorgy Rethy | Priority | normal => high
25-05-2011 16:54 | Gyorgy Rethy | Note Added: 0010067 |
25-05-2011 16:55 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Jacob Wieland - Spirent
25-05-2011 16:56 | Gyorgy Rethy | Note Edited: 0009995 |
25-05-2011 17:20 | Jacob Wieland - Spirent | Note Added: 0010069 |
25-05-2011 17:20 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
25-05-2011 17:26 | Gyorgy Rethy | File Added: CR5847_resolution_v2.doc |
25-05-2011 17:28 | Gyorgy Rethy | Status | assigned => resolved
25-05-2011 17:28 | Gyorgy Rethy | Resolution | open => fixed
25-05-2011 17:28 | Gyorgy Rethy | Note Added: 0010070 |
13-07-2011 16:12 | Gyorgy Rethy | Status | resolved => closed
13-07-2011 16:12 | Gyorgy Rethy | Note Added: 0010218 |
13-07-2011 16:12 | Gyorgy Rethy | Fixed in Version | => Edition 4.3.2 (interim)

Notes

(0009995)
Gyorgy Rethy
13-04-2011 10:48 (edited on: 25-05-2011 16:56)

3GPP related CR. The file es_20187309v040203.zip contains a proposed resolution based on TB MTS's decision, i.e. resolve the issue according to MTS(11)0028r1 option b). The changes are applied to the input document es_20187310v040202m.doc, i.e. the document version for ETSI member vote. Consequently, all changes shall be re-implemented in the published version of v4.3.1 by STF VO.

(0010067)
Gyorgy Rethy
25-05-2011 16:54

Jacob, pls. review.

(0010069)
Jacob Wieland - Spirent
25-05-2011 17:20

Page 81, organization -> example, wildard -> wildcards Page 106, targetnamespace of module missing, therefor module must be named NoTargetNamespace (or the right targetnamespace added) Same is true for Example2.

(0010070)
Gyorgy Rethy
25-05-2011 17:28

Jacob's comments are corrected in file CR5847_resolution_v2.doc

(0010218)
Gyorgy Rethy
13-07-2011 16:12

Added to master copy.