1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB
4 * XSD to TTCN-3 Translator
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 *******************************************************************************/
12 // File: http_www_XmlTest_org_po_e.ttcn
17 // Updated: Thu Sep 5 17:34:55 2013
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
23 // /* xml version = "1.0" */
24 // /* targetnamespace = "http://www.XmlTest.org/po/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module http_www_XmlTest_org_po {
42 /* Purchase order schema for Example.com.
43 Copyright 2000 Example.com. All rights reserved. */
46 type PurchaseOrderType PurchaseOrder
48 variant "name as uncapitalized";
53 type XSD.String Comment
55 variant "name as uncapitalized";
60 type record PurchaseOrderType
62 XSD.Date orderDate optional,
65 Comment comment optional,
69 variant (orderDate) "attribute";
75 XSD.NMTOKEN country ("US") optional,
83 variant (country) "defaultForEmpty as 'US'";
84 variant (country) "attribute";
92 XSD.String productName,
93 XSD.PositiveInteger quantity (1 .. !100),
95 Comment comment optional,
96 XSD.Date shipDate optional
100 variant (item_list) "untagged";
101 variant (item_list[-]) "name as 'item'";
102 variant (item_list[-].partNum) "attribute";
103 variant (item_list[-].uSPrice) "name as capitalized";
107 /* Stock Keeping Unit, a code for identifying products */
110 type XSD.String SKU (pattern "\d#(3)-[A-Z]#(2)");
116 variant "namespace as 'http://www.XmlTest.org/po'";
117 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";