/****************************************************************************** * Copyright (c) 2000-2015 Ericsson Telecom AB * 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 ******************************************************************************/ /* Annex B Example 1 TTCN-3 Module: */ module AnnexB1 { //import from XSD language "XML" all; type record Shiporder { universal charstring orderid, universal charstring orderperson, record { universal charstring name, universal charstring address_1, universal charstring city, universal charstring country } shipto, record { universal charstring title, universal charstring note optional, integer quantity, float price } item } with { variant "name as uncapitalized"; variant (orderid) "attribute "; variant (shipto.address_1) "name as 'address'"; variant (item.price) "XSD:decimal" } // Shiporder } with { encode "XML"; }