1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
4 * XSD to TTCN-3 Translator
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *******************************************************************************/
12 // File: www_XmlTest_org_string_e.ttcn
17 // Updated: Thu Sep 5 17:34:59 2013
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - XmlTest_string.xsd
23 // /* xml version = "1.0" */
24 // /* targetnamespace = "http://www.XmlTest.org/string" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module www_XmlTest_org_string_e {
42 /* This documentum tests based on
43 XML Schema Part 0: Primer Second Edition,
46 XML Schema Part 2: Datatypes Second Edition
47 3 Built-in Datatypes */
61 variant "name as uncapitalized";
66 type XSD.String Name_1
68 variant "name as 'name'";
72 type XSD.String NameLength4 length(4);
75 type Non_empty_string_1 Non_empty_string
77 variant "name as 'Non-empty-string'";
82 type XSD.String Non_empty_string_1 length(3)
84 variant "name as 'Non-empty-string'";
88 type Non_empty_string Non_empty_stringChild length(0 .. infinity)
90 variant "name as 'Non-empty-stringChild'";
94 type XSD.String Longer_string length(5)
96 variant "name as 'Longer-string'";
100 type Longer_string Longer_stringChild length(5)
102 variant "name as 'Longer-stringChild'";
106 type XSD.String StringMin length(5 .. infinity);
109 type XSD.String StringMax length(0 .. 7);
112 type XSD.String StringMinMax length(5 .. 7);
115 type XSD.String Better_us_zipcode (pattern "[0-9]#5(-[0-9]#4)#(0,1)")
117 variant "name as 'better-us-zipcode'";
121 /* [$\c]+ means: (dollar or NameChar) 1 or more times.
122 \c inside a character class gets "folded into" it.
123 It should become: (pattern "dollar-or-namechar`s=[$\w\d.\-_:]+") */
126 type XSD.String HO47449a (pattern "dollar-or-namechar`s=[$\w\d.\-_:]+");
129 /* [\]$\c\[]+ means: (] or $ or NameChar or [) 1 or more times.
130 \c is still inside a character class.
131 It should become: (pattern "still-inside=[\]$\w\d.\-_:\[]+") */
134 type XSD.String HO47449b (pattern "still-inside=[\]$\w\d.\-_:\[]+");
137 /* [ ]$\c[ ]+ means: space,
138 followed by dollar, a NameChar,
139 and another space 1 or more times.
140 This time, \c is outside the character class.
141 It should become: (pattern "outside=[ ]$[\w\d.\-_:][ ]+") */
144 type XSD.String HO47449c (pattern "outside=[ ]$[\w\d.\-_:][ ]+");
147 type XSD.String Mystring_1 length(4 .. infinity)
149 variant "name as 'mystring'";
153 /* Case Sensitivity Test follows: Mystring and mystring should be different */
156 type XSD.String Mystring length(4 .. infinity);
161 variant "name as uncapitalized";
166 type XSD.String Type_1
168 variant "name as 'type'";
175 variant "namespace as 'http://www.XmlTest.org/string' prefix 'strng'";
176 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";