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

ID | Project | Category | View Status | Date Submitted | Last Update
0004233 | Part 09: Using XML with TTCN-3 | Clarification | public | 02-10-2008 08:55 | 30-10-2008 15:11

Reporter | Gyorgy Rethy |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v3.3.1 (published 2008-04) |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | 6.1.4
For STF discussion |
Source (company - Author) | L.M.Ericsson

Summary | 0004233: Text describing XSD patterns mapping is unclear

Description

The current text is unclear, mixes different terms, e.g. patterns and regular expressions and the mapping of the XSD quadruple pattern is missing.
It is proposed instead:"For XSD types derived directly or indirectly from the XSD string type, pattern facets shall directly be mapped to TTCN-3 pattern subtyping. This facet is not supported for numerical and boolean types. As the syntax of XSD regular patterns differs from the syntax of the TTCN-3 pattern subtyping, a mapping of the pattern expression shall be applied. The symbols (, ), |, [, ], ^, - shall not be change and shall be translated directly. Other metacharacters shall be mapped according to tables 3 and 4.
Table 3: Translation of metacharacters
XSD TTCN-3
. ?
\s [ï–\t\n\r]
\S [^ï–\t\n\t]
\d \d
\D [^\d]
\w \w
\W [^\w]
\i [\w\d:]
\I [^\w\d:]
\c [\w\d.\-_:]
\C [^\w\d.\-_:]
&#xgprc \q{g,p,r,c}
Table 4: Translation of quantifiers
XSD TTCN-3
? #(0,1)
+ #(1, )
* #(0, )
{n,m} #(n,m)
{n} #(n)
{n,} #(n, )
Escaped characters in XSD shall be mapped to the appropriate character (e.g. '.', and '+') or, if this character has a metacharacter meaning in TTCN-3 patterns, to an escaped character in TTCN-3. The double quote character must be mapped to a pair of double quote characters in TTCN-3. Character categories and blocks (like \p{Lu} or \p{IsBasicLatin}) are not supported. The mapping shall result in a valid TTCN-3 pattern according to clause B.1.5 of ES 201 873 1 [1].
EXAMPLE:
..."

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR4233_Solution.doc (50,176) 15-10-2008 17:15 http://oldforge.etsi.org/mantis/file_download.php?file_id=1694&type=bug

Issue History
Date Modified | Username | Field | Change
02-10-2008 08:55 | Gyorgy Rethy | New Issue |
02-10-2008 08:55 | Gyorgy Rethy | Status | new => assigned
02-10-2008 08:55 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
02-10-2008 08:55 | Gyorgy Rethy | Clause Reference(s) | => 6.1.4
02-10-2008 08:55 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
13-10-2008 09:29 | Gyorgy Rethy | Summary | XSD patterns mapping is unclear => Text describing XSD patterns mapping is unclear
15-10-2008 10:03 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
15-10-2008 17:15 | Ina Schieferdecker | Note Added: 0007079 |
15-10-2008 17:15 | Ina Schieferdecker | File Added: CR4233_Solution.doc |
15-10-2008 17:16 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Gyorgy Rethy
15-10-2008 17:16 | Ina Schieferdecker | Resolution | open => fixed
15-10-2008 17:16 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
30-10-2008 15:11 | Gyorgy Rethy | Status | assigned => closed
30-10-2008 15:11 | Gyorgy Rethy | Note Added: 0007224 |
30-10-2008 15:11 | Gyorgy Rethy | Fixed in Version | => Edition 4.1.1 (not yet published)

Notes

(0007079)
Ina Schieferdecker
15-10-2008 17:15

In principle ok - see attached solution.

(0007224)
Gyorgy Rethy
30-10-2008 15:11

Done in master copy, in line with the proposed solution but the order of the sentences. First defined for which types the facet is suppoerted and then the translation is described. One additional error is corrected in table 3 -> the XSD and TTCN-3 \n-s are not equivalent, the former denotes line feed (LF) only, the latter denotes any of LF, VT, FF & CR.