/******************************************************************************* * Copyright Ericsson Telecom AB * * XSD to TTCN-3 Translator * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ // // File: www_XmlTest_org_complex_choice_e.ttcn // Description: // References: // Rev: // Prodnr: // Updated: Thu Sep 5 17:35:04 2013 // Contact: http://ttcn.ericsson.se // //////////////////////////////////////////////////////////////////////////////// // Generated from file(s): // - XmlTest_complex_choice.xsd // /* xml version = "1.0" */ // /* targetnamespace = "www.XmlTest.org/complex_choice" */ //////////////////////////////////////////////////////////////////////////////// // Modification header(s): //----------------------------------------------------------------------------- // Modified by: // Modification date: // Description: // Modification contact: //------------------------------------------------------------------------------ //////////////////////////////////////////////////////////////////////////////// module www_XmlTest_org_complex_choice_e { import from XSD all; /* This documentum tests based on XML Schema Part 0: Primer Second Edition 2.7 Building Content models */ type record Lesson { XSD.Time starts optional, union { XSD.String english, XSD.String math, Nature nature, Lab lab } choice } with { variant (starts) "name as capitalized"; variant (starts) "attribute"; variant (choice) "untagged"; variant (choice.english) "name as capitalized"; variant (choice.math) "name as capitalized"; variant (choice.nature) "name as capitalized"; variant (choice.lab) "name as capitalized"; }; type union Nature { XSD.String physics, XSD.String chemistry } with { variant "untagged"; variant (physics) "name as capitalized"; variant (chemistry) "name as capitalized"; }; type record Lab { XSD.String measurement, XSD.String evaluation } with { variant "untagged"; variant (measurement) "name as capitalized"; variant (evaluation) "name as capitalized"; }; type Lesson MyLessonElement with { variant "element"; }; type record Lesson2 { XSD.Time starts optional, union { XSD.String english, XSD.String math, union { XSD.String physics, XSD.String chemistry } choice, record { XSD.String measurement, XSD.String evaluation } sequence } choice } with { variant (starts) "name as capitalized"; variant (starts) "attribute"; variant (choice) "untagged"; variant (choice.english) "name as capitalized"; variant (choice.math) "name as capitalized"; variant (choice.choice) "untagged"; variant (choice.choice.physics) "name as capitalized"; variant (choice.choice.chemistry) "name as capitalized"; variant (choice.sequence) "untagged"; variant (choice.sequence.measurement) "name as capitalized"; variant (choice.sequence.evaluation) "name as capitalized"; }; type record Lesson3 { XSD.Time starts optional, union { XSD.String english, XSD.String math, record { union { XSD.String physics, XSD.String chemistry } choice } nature, record { XSD.String measurement, XSD.String evaluation } lab } choice } with { variant (starts) "name as capitalized"; variant (starts) "attribute"; variant (choice) "untagged"; variant (choice.english) "name as capitalized"; variant (choice.math) "name as capitalized"; variant (choice.nature) "name as capitalized"; variant (choice.nature.choice) "untagged"; variant (choice.nature.choice.physics) "name as capitalized"; variant (choice.nature.choice.chemistry) "name as capitalized"; variant (choice.lab) "name as capitalized"; variant (choice.lab.measurement) "name as capitalized"; variant (choice.lab.evaluation) "name as capitalized"; }; } with { encode "XML"; variant "namespace as 'www.XmlTest.org/complex_choice' prefix 'ns40'"; variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; }