d44e3c4f |
1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
3abe9331 |
3 | * |
d44e3c4f |
4 | * XSD to TTCN-3 Translator |
3abe9331 |
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 |
d44e3c4f |
10 | * |
11 | * Contributors: |
12 | * Balasko, Jeno |
13 | * Szabo, Bence Janos |
14 | * |
15 | ******************************************************************************/ |
3abe9331 |
16 | // |
17 | // File: www_example_org_decimal_fractiondigits_e.ttcn |
18 | // Description: |
19 | // References: |
20 | // Rev: |
21 | // Prodnr: |
22 | // Updated: Mon Jul 3 10:21:10 2011 |
23 | // Contact: http://ttcn.ericsson.se |
24 | // |
25 | //////////////////////////////////////////////////////////////////////////////// |
26 | // Generated from file(s): |
27 | // - decimal_fractiondigits.xsd |
28 | // /* xml version = "1.0" encoding = "UTF-8" */ |
29 | // /* targetnamespace = "www.example.org/decimal/fractiondigits/e" */ |
30 | //////////////////////////////////////////////////////////////////////////////// |
31 | // Modification header(s): |
32 | //----------------------------------------------------------------------------- |
33 | // Modified by: |
34 | // Modification date: |
35 | // Description: |
36 | // Modification contact: |
37 | //------------------------------------------------------------------------------ |
38 | //////////////////////////////////////////////////////////////////////////////// |
39 | |
40 | |
41 | module www_example_org_decimal_fractiondigits { |
42 | |
43 | |
44 | import from XSD all; |
45 | |
46 | |
47 | type XSD.Decimal CelsiusBodyTemp (-9999.0 .. 9999.0) |
48 | with { |
3f84031e |
49 | variant "name as uncapitalized"; |
3abe9331 |
50 | }; |
51 | |
52 | |
53 | type union Union_with_fraction |
54 | { |
55 | XSD.Decimal alt_ (-9999.0 .. 9999.0), |
56 | XSD.Float alt_1, |
57 | XSD.Integer alt_2 |
58 | } |
59 | with { |
3f84031e |
60 | variant "name as uncapitalized"; |
61 | variant "useUnion"; |
62 | variant "element"; |
63 | variant (alt_) "name as ''"; |
64 | variant (alt_1) "name as ''"; |
65 | variant (alt_2) "name as ''"; |
3abe9331 |
66 | }; |
67 | |
68 | |
69 | } |
70 | with { |
3f84031e |
71 | encode "XML"; |
72 | variant "namespace as 'www.example.org/decimal/fractiondigits'"; |
73 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
3abe9331 |
74 | } |