/******************************************************************************
* Copyright (c) 2000-2025 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 v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
*   Balasko, Jeno
*   Lovassy, Arpad
*   Raduly, Csaba
*   Szabo, Bence Janos
*
******************************************************************************/
//
//  File:          www_XmlTest_org_element_recordOfElements.ttcn
//  Description:
//  References:
//  Rev:
//  Prodnr:
//  Updated:       Thu Sep  5 17:35:08 2013
//  Contact:       http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
//	Generated from file(s):
//	- XmlTest_element_recordOfElements.xsd
//			/* xml version = "1.0" */
//			/* targetnamespace = "www.XmlTest.org/element_recordOfElements" */
////////////////////////////////////////////////////////////////////////////////
//     Modification header(s):
//-----------------------------------------------------------------------------
//  Modified by:
//  Modification date:
//  Description:
//  Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////


module www_XmlTest_org_element_recordOfElements {


import from XSD all;


const XSD.String c_defaultForEmpty_1 := "Msc";


const XSD.String c_defaultForEmpty_2 := "American";


/* This documentum tests based on
      XML Schema Part 1: Structures Second Edition */


type record PersonInfo1
{
	XSD.String firstName,
	XSD.String lastName,
	XSD.Integer age,
	XSD.String degree optional
}
with {
  variant (degree) "defaultForEmpty as c_defaultForEmpty_1";
};


type record PersonInfo2
{
	XSD.String nationality optional,
	XSD.String title optional,
	XSD.String firstName,
	XSD.String lastName,
	XSD.Integer age optional
}
with {
  variant (nationality) "defaultForEmpty as c_defaultForEmpty_2";
  variant (nationality) "attribute";
  variant (title) "attribute";
};


type PersonInfo2 PI
with {
  variant "element";
};


}
with {
  encode "XML";
  variant "namespace as 'www.XmlTest.org/element_recordOfElements' prefix 'ns27'";
  variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
}
