/****************************************************************************** * Copyright (c) 2000-2016 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 * * Contributors: * Balasko, Jeno * Raduly, Csaba * ******************************************************************************/ module NamespaceDef { type record MyRecordType { integer field1, charstring field2 } with { variant (field1) "namespace as 'http://www.example.org/example1' prefix 'ns1'"; } template MyRecordType MyTemplate := { field1 := 3, field2 := "four" } /* will be encoded as: 3 four */ type record of MyRecordType NsRecords; } with { encode "XML"; variant /*(all , all.all )*/ "namespace as 'http://www.example.org/' prefix 'ns0'" variant "elementFormQualified" }