| 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 | * Lovassy, Arpad |
| 14 | * Raduly, Csaba |
| 15 | * Szabo, Bence Janos |
| 16 | * |
| 17 | ******************************************************************************/ |
| 18 | // |
| 19 | // File: www_XmlTest_org_element_recordOfElements5_e.ttcn |
| 20 | // Description: |
| 21 | // References: |
| 22 | // Rev: |
| 23 | // Prodnr: |
| 24 | // Updated: Thu Sep 5 17:35:08 2013 |
| 25 | // Contact: http://ttcn.ericsson.se |
| 26 | // |
| 27 | //////////////////////////////////////////////////////////////////////////////// |
| 28 | // Generated from file(s): |
| 29 | // - XmlTest_element_recordOfElements5_e.xsd |
| 30 | // /* xml version = "1.0" */ |
| 31 | // /* targetnamespace = "www.XmlTest.org/element_recordOfElements5" */ |
| 32 | //////////////////////////////////////////////////////////////////////////////// |
| 33 | // Modification header(s): |
| 34 | //----------------------------------------------------------------------------- |
| 35 | // Modified by: |
| 36 | // Modification date: |
| 37 | // Description: |
| 38 | // Modification contact: |
| 39 | //------------------------------------------------------------------------------ |
| 40 | //////////////////////////////////////////////////////////////////////////////// |
| 41 | |
| 42 | |
| 43 | module www_XmlTest_org_element_recordOfElements5_e { |
| 44 | |
| 45 | |
| 46 | import from XSD all; |
| 47 | |
| 48 | |
| 49 | /* This documentum tests based on |
| 50 | XML Schema Part 1: Structures Second Edition */ |
| 51 | |
| 52 | |
| 53 | type record PersonInfo5 |
| 54 | { |
| 55 | XSD.String firstName, |
| 56 | XSD.String lastName, |
| 57 | XSD.Integer age optional, |
| 58 | record length(0 .. 10) of record { |
| 59 | XSD.GYear year optional, |
| 60 | XSD.String base |
| 61 | } degree_list |
| 62 | } |
| 63 | with { |
| 64 | variant (degree_list) "untagged"; |
| 65 | variant (degree_list[-]) "name as 'Degree'"; |
| 66 | variant (degree_list[-].year) "name as capitalized"; |
| 67 | variant (degree_list[-].year) "attribute"; |
| 68 | variant (degree_list[-].base) "untagged"; |
| 69 | }; |
| 70 | |
| 71 | |
| 72 | } |
| 73 | with { |
| 74 | encode "XML"; |
| 75 | variant "namespace as 'www.XmlTest.org/element_recordOfElements5' prefix 'ns28'"; |
| 76 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
| 77 | } |