/******************************************************************************* * 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_restriction_e.ttcn // Description: // References: // Rev: // Prodnr: // Updated: Thu Sep 5 17:35:03 2013 // Contact: http://ttcn.ericsson.se // //////////////////////////////////////////////////////////////////////////////// // Generated from file(s): // - XmlTest_complex_restriction.xsd // /* xml version = "1.0" */ // /* targetnamespace = "www.XmlTest.org/complex_restriction" */ //////////////////////////////////////////////////////////////////////////////// // Modification header(s): //----------------------------------------------------------------------------- // Modified by: // Modification date: // Description: // Modification contact: //------------------------------------------------------------------------------ //////////////////////////////////////////////////////////////////////////////// module www_XmlTest_org_complex_restriction_e { import from XSD all; /* This documentum tests based on XML Schema Part 0: Primer Second Edition 4.4 Deriving Types by Restriction XML Schema Part 1: Structures Secod Edition 3.4.2 XML Representation of Complex Type Definitions */ type record MySubjects4 { XSD.GYear year optional, XSD.String english optional, XSD.String math optional, record length(0 .. 3) of XSD.String physics_list, XSD.String chemistry optional } with { variant (year) "name as capitalized"; variant (year) "attribute"; variant (english) "name as capitalized"; variant (math) "name as capitalized"; variant (physics_list) "untagged"; variant (physics_list[-]) "name as 'Physics'"; variant (chemistry) "name as capitalized"; }; type record MySubjects4Restriction { XSD.GYear year optional, XSD.String english, XSD.String math, record length(1 .. 2) of XSD.String physics_list } with { variant (year) "name as capitalized"; variant (year) "attribute"; variant (english) "name as capitalized"; variant (math) "name as capitalized"; variant (physics_list) "untagged"; variant (physics_list[-]) "name as 'Physics'"; }; } with { encode "XML"; variant "namespace as 'www.XmlTest.org/complex_restriction' prefix 'ns36'"; variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; }