| 1 | /****************************************************************************** |
| 2 | * Copyright (c) 2000-2016 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 | * Contributors: |
| 12 | * Balasko, Jeno |
| 13 | * Szabo, Bence Janos |
| 14 | * |
| 15 | ******************************************************************************/ |
| 16 | // |
| 17 | // File: www_example_org_attrib_enum_e.ttcn |
| 18 | // Description: |
| 19 | // References: |
| 20 | // Rev: |
| 21 | // Prodnr: |
| 22 | // Updated: Wed Oct 28 13:49:38 2015 |
| 23 | // Contact: http://ttcn.ericsson.se |
| 24 | // |
| 25 | //////////////////////////////////////////////////////////////////////////////// |
| 26 | // Generated from file(s): |
| 27 | // - attrib_enum_e.xsd |
| 28 | // /* xml version = "1.0" encoding = "UTF-8" */ |
| 29 | // /* targetnamespace = "www.example.org/attrib/enum/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_attrib_enum { |
| 42 | |
| 43 | |
| 44 | import from XSD all; |
| 45 | |
| 46 | |
| 47 | type record AttribEnum |
| 48 | { |
| 49 | enumerated { |
| 50 | first, |
| 51 | second |
| 52 | } attr optional |
| 53 | } |
| 54 | with { |
| 55 | variant (attr) "attribute"; |
| 56 | }; |
| 57 | |
| 58 | |
| 59 | } |
| 60 | with { |
| 61 | encode "XML"; |
| 62 | variant "namespace as 'www.example.org/attrib/enum' prefix 'this'"; |
| 63 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
| 64 | } |