/******************************************************************************* * 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: http_www_XmlTest_org_po_e.ttcn // Description: // References: // Rev: // Prodnr: // Updated: Thu Sep 5 17:34:55 2013 // Contact: http://ttcn.ericsson.se // //////////////////////////////////////////////////////////////////////////////// // Generated from file(s): // - po.xsd // /* xml version = "1.0" */ // /* targetnamespace = "http://www.XmlTest.org/po/e" */ //////////////////////////////////////////////////////////////////////////////// // Modification header(s): //----------------------------------------------------------------------------- // Modified by: // Modification date: // Description: // Modification contact: //------------------------------------------------------------------------------ //////////////////////////////////////////////////////////////////////////////// module http_www_XmlTest_org_po { import from XSD all; /* Purchase order schema for Example.com. Copyright 2000 Example.com. All rights reserved. */ type PurchaseOrderType PurchaseOrder with { variant "name as uncapitalized"; variant "element"; }; type XSD.String Comment with { variant "name as uncapitalized"; variant "element"; }; type record PurchaseOrderType { XSD.Date orderDate optional, USAddress shipTo, USAddress billTo, Comment comment optional, Items items } with { variant (orderDate) "attribute"; }; type record USAddress { XSD.NMTOKEN country ("US") optional, XSD.String name, XSD.String street, XSD.String city, XSD.String state, XSD.Decimal zip } with { variant (country) "defaultForEmpty as 'US'"; variant (country) "attribute"; }; type record Items { record of record { SKU partNum, XSD.String productName, XSD.PositiveInteger quantity (1 .. !100), XSD.Decimal uSPrice, Comment comment optional, XSD.Date shipDate optional } item_list } with { variant (item_list) "untagged"; variant (item_list[-]) "name as 'item'"; variant (item_list[-].partNum) "attribute"; variant (item_list[-].uSPrice) "name as capitalized"; }; /* Stock Keeping Unit, a code for identifying products */ type XSD.String SKU (pattern "\d#(3)-[A-Z]#(2)"); } with { encode "XML"; variant "namespace as 'http://www.XmlTest.org/po'"; variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; }