Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | /******************************************************************************* |
2 | * Copyright Ericsson Telecom AB | |
3 | * | |
4 | * XSD to TTCN-3 Translator | |
5 | * | |
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 | *******************************************************************************/ | |
11 | // | |
12 | // File: www_XmlTest_org_boolean_e.ttcn | |
13 | // Description: | |
14 | // References: | |
15 | // Rev: | |
16 | // Prodnr: | |
17 | // Updated: Thu Sep 5 17:35:01 2013 | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // Generated from file(s): | |
22 | // - XmlTest_boolean.xsd | |
23 | // /* xml version = "1.0" */ | |
24 | // /* targetnamespace = "www.XmlTest.org/boolean" */ | |
25 | //////////////////////////////////////////////////////////////////////////////// | |
26 | // Modification header(s): | |
27 | //----------------------------------------------------------------------------- | |
28 | // Modified by: | |
29 | // Modification date: | |
30 | // Description: | |
31 | // Modification contact: | |
32 | //------------------------------------------------------------------------------ | |
33 | //////////////////////////////////////////////////////////////////////////////// | |
34 | ||
35 | ||
36 | module www_XmlTest_org_boolean_e { | |
37 | ||
38 | ||
39 | import from XSD all; | |
40 | ||
41 | ||
42 | /* This documentum tests based on | |
43 | XML Schema Part 0: Primer Second Edition, | |
44 | 2.3 Simple Types and | |
45 | Appendix B | |
46 | XML Schema Part 2: Datatypes Second Edition | |
47 | 3.2.2 boolean | |
48 | Pattern and Whitespace are not applicable (ETSI 9) */ | |
49 | ||
50 | ||
51 | type XSD.Boolean Result; | |
3abe9331 | 52 | //with { |
53 | //variant "text 'true' as '1'"; | |
54 | //variant "text 'false' as '0'"; | |
55 | //}; | |
970ed795 EL |
56 | |
57 | ||
58 | type XSD.Boolean Result1; | |
3abe9331 | 59 | //with { |
60 | //variant "text 'true' as '1'"; | |
61 | //variant "text 'false' as '0'"; | |
62 | //}; | |
970ed795 EL |
63 | |
64 | ||
65 | } | |
66 | with { | |
67 | encode "XML"; | |
68 | variant "namespace as 'www.XmlTest.org/boolean' prefix 'ns0'"; | |
69 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
70 | } |