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

ID | Project | Category | View Status | Date Submitted | Last Update
0004228 | Part 09: Using XML with TTCN-3 | Technical | public | 02-10-2008 05:27 | 17-10-2008 10:40

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) | 7.5.1
For STF discussion |
Source (company - Author) | L.M.Ericsson

Summary | 0004228: Syntactical error in pattern example
Description | the example type XSD.String E18 (pattern "((ahi|eho|cre|dve)@(f|F)okus)#(1)") is syntactically incorrect (it should be either #(1,1) or #1) but the multiplyer is superflouos anyway. Proposed to change to type XSD.String E18 (pattern "(ahi|eho|cre|dve)@(f|F)okus")
Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
02-10-2008 05:27 | Gyorgy Rethy | New Issue |
02-10-2008 05:27 | Gyorgy Rethy | Status | new => assigned
02-10-2008 05:27 | Gyorgy Rethy | Assigned To | => Gyorgy Rethy
02-10-2008 05:27 | Gyorgy Rethy | Clause Reference(s) | => 7.5.1
02-10-2008 05:27 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson
15-10-2008 10:05 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
15-10-2008 14:11 | Ina Schieferdecker | Note Added: 0007070 |
15-10-2008 14:11 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Gyorgy Rethy
15-10-2008 14:11 | Ina Schieferdecker | Resolution | open => fixed
15-10-2008 14:11 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
17-10-2008 10:40 | Gyorgy Rethy | Status | assigned => closed
17-10-2008 10:40 | Gyorgy Rethy | Note Added: 0007115 |
17-10-2008 10:40 | Gyorgy Rethy | Fixed in Version | => Edition 4.1.1 (not yet published)

Notes

(0007070)
Ina Schieferdecker
15-10-2008 14:11

The proposed solution is ok, but please change the pattern into a more generic one:
In 6.1.4 Pattern (please note also the typo in expression)
------------------------
EXAMPLE:
<simpleType name="e6">
<restriction base="string">
<pattern value="(aUser|anotherUser)@(i|I)nstitute"/>
</restriction>
</simpleType>
Will be mapped to the following TTCN-3 expression:
type XSD.String E6 (pattern "(aUser|anotherUser)@(i|I)nstitute")
with {
variant "name as uncapitalized";
};
7.5.1 Derivation by restriction
---------------------------------
<simpleType name="e18">
<restriction>
<simpleType>
<restriction base="string"/>
</simpleType>
<pattern value="(aUser|anotherUser)@(i|I)nstitute"/>
</restriction>
</simpleType>
This will generate a mapping for the inner type and its restriction:
type XSD.String E18 (pattern "(aUser|anotherUser)@(i|I)nstitute")
with {
variant "name as uncapitalized ";
};
In addition, Table 4: Translation of quantifiers has to be corrected:
{n} translates to #n (and not to #(n))

(0007115)
Gyorgy Rethy
17-10-2008 10:40

Implemented (pattern as roposed by Ina, Table 4 corrected as well. Added to master copy