Skip to content
Snippets Groups Projects
Commit bcd76ec2 authored by Elemer Lelik's avatar Elemer Lelik Committed by GitHub
Browse files

Merge pull request #101 from eadrkir/master

Added xml tests
parents 825da4ab 117a1af5
No related branches found
No related tags found
No related merge requests found
Showing
with 504 additions and 84 deletions
...@@ -22,7 +22,11 @@ module Pos_070106_form_009 { ...@@ -22,7 +22,11 @@ module Pos_070106_form_009 {
myElement := {myField := 3} myElement := {myField := 3}
} }
external function enc_MyType(in MyElement pdu) return octetstring
with { extension "prototype (convert) encode(XER:XER_EXTENDED)" }
external function dec_MyType(in octetstring stream) return MyElement
with { extension "prototype (convert) decode(XER:XER_EXTENDED)" }
/** /**
* @desc The timeout given in seconds after which the test case will be stopped. * @desc The timeout given in seconds after which the test case will be stopped.
...@@ -32,23 +36,47 @@ module Pos_070106_form_009 { ...@@ -32,23 +36,47 @@ module Pos_070106_form_009 {
type universal charstring Raw; type universal charstring Raw;
type port P message { type port P message {
inout all; inout Raw;
} } with {extension "internal"}
type component C { type component C {
port P p; port P p;
port P p1;
} }
testcase TC_Pos_070106_form_009() runs on C system C { testcase TC_Pos_070106_form_009() runs on C system C {
map(self:p, system:p);
// encode the message var Raw v_rcv;
p.send(m_msg);
log("template should either be rejected by compiler or by runtime latest while encoding"); var Raw v_Raw:="<ns230_1:MyElement xmlns:ns230_1='schema:Pos_070106_form_009' xmlns:ns230_2='schema:Pos_070106_form_009_2'>\n\t<ns230_1:myField>1</ns230_1:myField>\n\t<ns230_1:myField2>\n\t\t<myField>2</myField>\n\t</ns230_1:myField2>\n\t<ns230_2:MyElement>\n\t\t<myField>3</myField>\n\t</ns230_2:MyElement>\n</ns230_1:MyElement>\n\n";
connect(self:p, self:p1);
p.send(oct2unichar(enc_MyType(valueof(m_msg))));
setverdict(fail, "Invalid template should not be encoded"); alt {
// compare the encoded message with the reference XML file
[] p1.check(receive(Raw:?) -> value v_rcv) {
log("XML message ", v_rcv);
if (match(v_rcv, v_Raw) ) {
alt {
[] p1.receive(Raw:?) {
if(match(dec_MyType(unichar2oct(v_rcv)),m_msg)) {
setverdict(pass, "Decoded value matches encoded template and reference XML");
}
else
{setverdict(fail, "XML decoding failure, reason:", dec_MyType(unichar2oct(v_rcv)));}
}
}
} else {
setverdict(fail, "Unexpected message: ", v_rcv, " expected: ", v_Raw);
}
}
[] p1.receive {
setverdict(fail, "Raw decoding failure");
}
}
unmap(self:p, system:p);
} }
control { control {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ns132_1:MyElement xmlns:ns="schema:Neg_070106_form_001" <ns230_1:MyElement xmlns:ns="schema:Neg_070106_form_001"
xmlns:ns132_2="schema:Neg_070106_form_001_2"> xmlns:ns230_2="schema:Neg_070106_form_001_2">
<ns132_1:myField>1</ns132_1:myField> <ns230_1:myField>1</ns230_1:myField>
<ns132_1:myField2><myField>2</myField></ns132_1:myField2> <ns230_1:myField2><myField>2</myField></ns230_1:myField2>
<ns132_2:myElement><myField>3</myField></ns132_2:myElement> <ns230_2:myElement><myField>3</myField></ns230_2:myElement>
</ns132_1:MyElement> </ns230_1:MyElement>
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="schema:Pos_070106_form_009" targetNamespace="schema:Pos_070106_form_009"
xmlns:ns132_1="schema:Pos_070106_form_009" xmlns:ns230_1="schema:Pos_070106_form_009"
xmlns:ns132_2="schema:Pos_070106_form_009_2"> xmlns:ns230_2="schema:Pos_070106_form_009_2">
<import namespace="schema:Pos_070106_form_009_2" schemaLocation="Pos_070106_form_009_2.xsd" /> <import namespace="schema:Pos_070106_form_009_2" schemaLocation="Pos_070106_form_009_2.xsd" />
<element name="MyElement"> <element name="MyElement">
<complexType> <complexType>
<sequence> <sequence>
<element name="myField" type="integer" /> <element name="myField" type="integer" />
<element name="myField2" type="ns132_2:MyType"/> <element name="myField2" type="ns230_2:MyType"/>
<element ref="ns132_2:MyElement"/> <element ref="ns230_2:MyElement"/>
</sequence> </sequence>
</complexType> </complexType>
</element> </element>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="schema:Pos_070106_form_009_2" targetNamespace="schema:Pos_070106_form_009_2"
xmlns:ns132_2="schema:Pos_070106_form_009_2"> xmlns:ns230_2="schema:Pos_070106_form_009_2">
<element name="MyElement" type="ns:MyType" /> <element name="MyElement" type="ns230_2:MyType" />
<complexType name="MyType"> <complexType name="MyType">
<sequence> <sequence>
<element name="myField" type="integer" /> <element name="myField" type="integer" />
......
...@@ -22,7 +22,11 @@ module Pos_070106_form_010 { ...@@ -22,7 +22,11 @@ module Pos_070106_form_010 {
myElement := {myField := 3} myElement := {myField := 3}
} }
external function enc_MyType(in MyElement pdu) return octetstring
with { extension "prototype (convert) encode(XER:XER_EXTENDED)" }
external function dec_MyType(in octetstring stream) return MyElement
with { extension "prototype (convert) decode(XER:XER_EXTENDED)" }
/** /**
* @desc The timeout given in seconds after which the test case will be stopped. * @desc The timeout given in seconds after which the test case will be stopped.
...@@ -32,23 +36,46 @@ module Pos_070106_form_010 { ...@@ -32,23 +36,46 @@ module Pos_070106_form_010 {
type universal charstring Raw; type universal charstring Raw;
type port P message { type port P message {
inout all; inout Raw;
} } with {extension "internal"}
type component C { type component C {
port P p; port P p;
port P p1;
} }
testcase TC_Pos_070106_form_010() runs on C system C { testcase TC_Pos_070106_form_010() runs on C system C {
map(self:p, system:p);
// encode the message var Raw v_rcv;
p.send(m_msg);
log("template should either be rejected by compiler or by runtime latest while encoding"); var Raw v_Raw:="<ns231_1:MyElement xmlns:ns231_1='schema:Pos_070106_form_010' xmlns:ns231_2='schema:Pos_070106_form_010_2'>\n\t<myField>1</myField>\n\t<myField2>\n\t\t<ns231_2:myField>2</ns231_2:myField>\n\t</myField2>\n\t<ns231_2:MyElement>\n\t\t<ns231_2:myField>3</ns231_2:myField>\n\t</ns231_2:MyElement>\n</ns231_1:MyElement>\n\n";
connect(self:p, self:p1);
setverdict(fail, "Invalid template should not be encoded"); p.send(oct2unichar(enc_MyType(valueof(m_msg))));
unmap(self:p, system:p); alt {
// compare the encoded message with the reference XML file
[] p1.check(receive(Raw:?) -> value v_rcv) {
log("XML message ", v_rcv);
if (match(v_rcv, v_Raw) ) {
alt {
[] p1.receive(Raw:?) {
if(match(dec_MyType(unichar2oct(v_rcv)),m_msg)) {
setverdict(pass, "Decoded value matches encoded template and reference XML");
}
else
{setverdict(fail, "XML decoding failure, reason:", dec_MyType(unichar2oct(v_rcv)));}
}
}
} else {
setverdict(fail, "Unexpected message: ", v_rcv, " expected: ", v_Raw);
}
}
[] p1.receive {
setverdict(fail, "Raw decoding failure");
}
}
} }
control { control {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ns:MyElement xmlns:ns="schema:Neg_070106_form_001" <ns231_1:MyElement xmlns:ns231_1="schema:Neg_070106_form_001"
xmlns:ns2="schema:Neg_070106_form_001_2"> xmlns:ns231_2="schema:Neg_070106_form_001_2">
<myField>1</myField> <myField>1</myField>
<myField2><ns2:myField>2</ns2:myField></myField2> <myField2><ns231_2:myField>2</ns231_2:myField></myField2>
<myElement><ns2:myField>3</ns2:myField></myElement> <myElement><ns231_2:myField>3</ns231_2:myField></myElement>
</ns:MyElement> </ns231_1:MyElement>
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="schema:Pos_070106_form_010" targetNamespace="schema:Pos_070106_form_010"
xmlns:ns="schema:Pos_070106_form_010" xmlns:ns231_1="schema:Pos_070106_form_010"
xmlns:ns2="schema:Pos_070106_form_010_2"> xmlns:ns231_2="schema:Pos_070106_form_010_2">
<import namespace="schema:Pos_070106_form_010_2" schemaLocation="Pos_070106_form_010_2.xsd" /> <import namespace="schema:Pos_070106_form_010_2" schemaLocation="Pos_070106_form_010_2.xsd" />
<element name="MyElement"> <element name="MyElement">
<complexType> <complexType>
<sequence> <sequence>
<element name="myField" type="integer" /> <element name="myField" type="integer" />
<element name="myField2" type="ns2:MyType"/> <element name="myField2" type="ns231_2:MyType"/>
<element ref="ns2:MyElement"/> <element ref="ns231_2:MyElement"/>
</sequence> </sequence>
</complexType> </complexType>
</element> </element>
</schema> </schema>
\ No newline at end of file
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="schema:Pos_070106_form_010_2" targetNamespace="schema:Pos_070106_form_010_2"
xmlns:ns="schema:Pos_070106_form_010_2"> xmlns:ns231_2="schema:Pos_070106_form_010_2">
<element name="MyElement" type="ns:MyType" /> <element name="MyElement" type="ns231_2:MyType" />
<complexType name="MyType"> <complexType name="MyType">
<sequence> <sequence>
<element name="myField" type="integer" /> <element name="myField" type="integer" />
</sequence> </sequence>
</complexType> </complexType>
</schema> </schema>
\ No newline at end of file
...@@ -22,7 +22,11 @@ module Pos_070106_form_011 { ...@@ -22,7 +22,11 @@ module Pos_070106_form_011 {
myElement := {3} myElement := {3}
} }
external function enc_MyType(in MyElement pdu) return octetstring
with { extension "prototype (convert) encode(XER:XER_EXTENDED)" }
external function dec_MyType(in octetstring stream) return MyElement
with { extension "prototype (convert) decode(XER:XER_EXTENDED)" }
/** /**
* @desc The timeout given in seconds after which the test case will be stopped. * @desc The timeout given in seconds after which the test case will be stopped.
...@@ -32,23 +36,46 @@ module Pos_070106_form_011 { ...@@ -32,23 +36,46 @@ module Pos_070106_form_011 {
type universal charstring Raw; type universal charstring Raw;
type port P message { type port P message {
inout all; inout Raw;
} } with {extension "internal"}
type component C { type component C {
port P p; port P p;
port P p1;
} }
testcase TC_Pos_070106_form_011() runs on C system C { testcase TC_Pos_070106_form_011() runs on C system C {
map(self:p, system:p);
// encode the message var Raw v_rcv;
p.send(m_msg);
log("template should either be rejected by compiler or by runtime latest while encoding"); var Raw v_Raw:="<ns232_1:MyElement xmlns:ns232_1='schema:Pos_070106_form_011' xmlns:ns232_2='schema:Pos_070106_form_011_2' ns232_1:myField='1'>\n\t<myField2 myField='2'/>\n\t<ns232_2:MyElement myField='3'/>\n</ns232_1:MyElement>\n\n";
connect(self:p, self:p1);
setverdict(fail, "Invalid template should not be encoded"); p.send(oct2unichar(enc_MyType(valueof(m_msg))));
unmap(self:p, system:p); alt {
// compare the encoded message with the reference XML file
[] p1.check(receive(Raw:?) -> value v_rcv) {
log("XML message ", v_rcv);
if (match(v_rcv, v_Raw) ) {
alt {
[] p1.receive(Raw:?) {
if(match(dec_MyType(unichar2oct(v_rcv)),m_msg)) {
setverdict(pass, "Decoded value matches encoded template and reference XML");
}
else
{setverdict(fail, "XML decoding failure, reason:", dec_MyType(unichar2oct(v_rcv)));}
}
}
} else {
setverdict(fail, "Unexpected message: ", v_rcv, " expected: ", v_Raw);
}
}
[] p1.receive {
setverdict(fail, "Raw decoding failure");
}
}
} }
control { control {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ns:MyElement xmlns:ns="schema:Neg_070106_form_001" <ns232_1:MyElement xmlns:ns232_1="schema:Neg_070106_form_001"
xmlns:ns2="schema:Neg_070106_form_001_2" xmlns:ns232_2="schema:Neg_070106_form_001_2"
ns:myField="1"> ns232_1:myField="1">
<ns:myField2>2</ns:myField2> <ns232_1:myField2>2</ns232_1:myField2>
<ns2:MyElement myField="3"/> <ns232_2:MyElement myField="3"/>
</ns:MyElement> </ns232_1:MyElement>
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" attributeFormDefault="qualified"
targetNamespace="schema:Pos_070106_form_011" targetNamespace="schema:Pos_070106_form_011"
xmlns:ns="schema:Pos_070106_form_011" xmlns:ns232_1="schema:Pos_070106_form_011"
xmlns:ns2="schema:Pos_070106_form_011_2"> xmlns:ns232_2="schema:Pos_070106_form_011_2">
<import namespace="schema:Pos_070106_form_011_2" schemaLocation="Pos_070106_form_011_2.xsd" /> <import namespace="schema:Pos_070106_form_011_2" schemaLocation="Pos_070106_form_011_2.xsd" />
<element name="MyElement"> <element name="MyElement">
<complexType> <complexType>
<sequence> <sequence>
<element name="myField2" type="ns2:MyType"/> <element name="myField2" type="ns232_2:MyType"/>
<element ref="ns2:MyElement"/> <element ref="ns232_2:MyElement"/>
</sequence> </sequence>
<attribute name="myField" type="integer" /> <attribute name="myField" type="integer" />
</complexType> </complexType>
</element> </element>
</schema> </schema>
\ No newline at end of file
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqualified" attributeFormDefault="unqualified"
targetNamespace="schema:Pos_070106_form_011_2" targetNamespace="schema:Pos_070106_form_011_2"
xmlns:ns="schema:Pos_070106_form_011_2"> xmlns:ns232_2="schema:Pos_070106_form_011_2">
<element name="MyElement" type="ns:MyType" /> <element name="MyElement" type="ns232_2:MyType" />
<complexType name="MyType"> <complexType name="MyType">
<attribute name="myField" type="integer" /> <attribute name="myField" type="integer" />
</complexType> </complexType>
</schema> </schema>
\ No newline at end of file
...@@ -22,7 +22,11 @@ module Pos_070106_form_012 { ...@@ -22,7 +22,11 @@ module Pos_070106_form_012 {
myElement := {3} myElement := {3}
} }
external function enc_MyType(in MyElement pdu) return octetstring
with { extension "prototype (convert) encode(XER:XER_EXTENDED)" }
external function dec_MyType(in octetstring stream) return MyElement
with { extension "prototype (convert) decode(XER:XER_EXTENDED)" }
/** /**
* @desc The timeout given in seconds after which the test case will be stopped. * @desc The timeout given in seconds after which the test case will be stopped.
...@@ -32,23 +36,46 @@ module Pos_070106_form_012 { ...@@ -32,23 +36,46 @@ module Pos_070106_form_012 {
type universal charstring Raw; type universal charstring Raw;
type port P message { type port P message {
inout all; inout Raw;
} } with {extension "internal"}
type component C { type component C {
port P p; port P p;
port P p1;
} }
testcase TC_Pos_070106_form_012() runs on C system C { testcase TC_Pos_070106_form_012() runs on C system C {
map(self:p, system:p);
// encode the message var Raw v_rcv;
p.send(m_msg);
log("template should either be rejected by compiler or by runtime latest while encoding"); var Raw v_Raw:="<ns233_1:MyElement xmlns:ns233_1='schema:Pos_070106_form_012' xmlns:ns233_2='schema:Pos_070106_form_012_2' myField='1'>\n\t<myField2 ns233_2:myField='2'/>\n\t<ns233_2:MyElement ns233_2:myField='3'/>\n</ns233_1:MyElement>\n\n";
connect(self:p, self:p1);
setverdict(fail, "Invalid template should not be encoded"); p.send(oct2unichar(enc_MyType(valueof(m_msg))));
unmap(self:p, system:p); alt {
// compare the encoded message with the reference XML file
[] p1.check(receive(Raw:?) -> value v_rcv) {
log("XML message ", v_rcv);
if (match(v_rcv, v_Raw) ) {
alt {
[] p1.receive(Raw:?) {
if(match(dec_MyType(unichar2oct(v_rcv)),m_msg)) {
setverdict(pass, "Decoded value matches encoded template and reference XML");
}
else
{setverdict(fail, "XML decoding failure, reason:", dec_MyType(unichar2oct(v_rcv)));}
}
}
} else {
setverdict(fail, "Unexpected message: ", v_rcv, " expected: ", v_Raw);
}
}
[] p1.receive {
setverdict(fail, "Raw decoding failure");
}
}
} }
control { control {
......
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqualified" attributeFormDefault="unqualified"
targetNamespace="schema:Pos_070106_form_012" targetNamespace="schema:Pos_070106_form_012"
xmlns:ns="schema:Pos_070106_form_012" xmlns:ns233_1="schema:Pos_070106_form_012"
xmlns:ns2="schema:Pos_070106_form_012_2"> xmlns:ns233_2="schema:Pos_070106_form_012_2">
<import namespace="schema:Pos_070106_form_012_2" schemaLocation="Pos_070106_form_012_2.xsd" /> <import namespace="schema:Pos_070106_form_012_2" schemaLocation="Pos_070106_form_012_2.xsd" />
<element name="MyElement"> <element name="MyElement">
<complexType> <complexType>
<sequence> <sequence>
<element name="myField2" type="ns2:MyType"/> <element name="myField2" type="ns233_2:MyType"/>
<element ref="ns2:MyElement"/> <element ref="ns233_2:MyElement"/>
</sequence> </sequence>
<attribute name="myField" type="integer" /> <attribute name="myField" type="integer" />
</complexType> </complexType>
</element> </element>
</schema> </schema>
\ No newline at end of file
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<schema xmlns="http://www.w3.org/2001/XMLSchema" <schema xmlns="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" attributeFormDefault="qualified"
targetNamespace="schema:Pos_070106_form_012_2" targetNamespace="schema:Pos_070106_form_012_2"
xmlns:ns="schema:Pos_070106_form_012_2"> xmlns:ns233_2="schema:Pos_070106_form_012_2">
<element name="MyElement" type="ns:MyType" /> <element name="MyElement" type="ns233_2:MyType" />
<complexType name="MyType"> <complexType name="MyType">
<attribute name="myField" type="MyAttributeType" /> <attribute name="myField" type="integer" />
</complexType> </complexType>
</schema> </schema>
\ No newline at end of file
/*******************************************************************************
* Copyright (c) 2000-2017 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/6 R1A
*
* 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: schema_Pos_070106_form_009.ttcn
// Description:
// References:
// Rev:
// Prodnr:
// Updated: Wed Jan 11 13:15:29 2017
// Contact: http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
// Generated from file(s):
// - Pos_070106_form_009.xsd
// /* xml version = "1.0" encoding = "UTF-8" */
// /* targetnamespace = "schema:Pos_070106_form_009" */
////////////////////////////////////////////////////////////////////////////////
// Modification header(s):
//-----------------------------------------------------------------------------
// Modified by:
// Modification date:
// Description:
// Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
module schema_Pos_070106_form_009 {
import from XSD all;
import from schema_Pos_070106_form_009_2 all;
type record MyElement
{
XSD.Integer myField,
MyType myField2,
schema_Pos_070106_form_009_2.MyElement myElement
}
with {
variant "element";
variant (myElement) "name as capitalized";
variant (myElement) "namespace as 'schema:Pos_070106_form_009_2' prefix 'ns230_2'";
};
}
with {
encode "XML";
variant "namespace as 'schema:Pos_070106_form_009' prefix 'ns230_1'";
variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
variant "elementFormQualified";
}
/*******************************************************************************
* Copyright (c) 2000-2017 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/6 R1A
*
* 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: schema_Pos_070106_form_009_2.ttcn
// Description:
// References:
// Rev:
// Prodnr:
// Updated: Wed Jan 11 13:15:29 2017
// Contact: http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
// Generated from file(s):
// - Pos_070106_form_009_2.xsd
// /* xml version = "1.0" encoding = "UTF-8" */
// /* targetnamespace = "schema:Pos_070106_form_009_2" */
////////////////////////////////////////////////////////////////////////////////
// Modification header(s):
//-----------------------------------------------------------------------------
// Modified by:
// Modification date:
// Description:
// Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
module schema_Pos_070106_form_009_2 {
import from XSD all;
type MyType MyElement
with {
variant "element";
};
type record MyType
{
XSD.Integer myField
};
}
with {
encode "XML";
variant "namespace as 'schema:Pos_070106_form_009_2' prefix 'ns230_2'";
variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
}
/*******************************************************************************
* Copyright (c) 2000-2017 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/6 R1A
*
* 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: schema_Pos_070106_form_010.ttcn
// Description:
// References:
// Rev:
// Prodnr:
// Updated: Wed Jan 11 11:33:35 2017
// Contact: http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
// Generated from file(s):
// - Pos_070106_form_010.xsd
// /* xml version = "1.0" encoding = "UTF-8" */
// /* targetnamespace = "schema:Pos_070106_form_010" */
////////////////////////////////////////////////////////////////////////////////
// Modification header(s):
//-----------------------------------------------------------------------------
// Modified by:
// Modification date:
// Description:
// Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
module schema_Pos_070106_form_010 {
import from XSD all;
import from schema_Pos_070106_form_010_2 all;
type record MyElement
{
XSD.Integer myField,
MyType myField2,
schema_Pos_070106_form_010_2.MyElement myElement
}
with {
variant "element";
variant (myElement) "name as capitalized";
variant (myElement) "namespace as 'schema:Pos_070106_form_010_2' prefix 'ns231_2'";
};
}
with {
encode "XML";
variant "namespace as 'schema:Pos_070106_form_010' prefix 'ns231_1'";
variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
}
/*******************************************************************************
* Copyright (c) 2000-2017 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/6 R1A
*
* 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: schema_Pos_070106_form_010_2.ttcn
// Description:
// References:
// Rev:
// Prodnr:
// Updated: Wed Jan 11 11:33:35 2017
// Contact: http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
// Generated from file(s):
// - Pos_070106_form_010_2.xsd
// /* xml version = "1.0" encoding = "UTF-8" */
// /* targetnamespace = "schema:Pos_070106_form_010_2" */
////////////////////////////////////////////////////////////////////////////////
// Modification header(s):
//-----------------------------------------------------------------------------
// Modified by:
// Modification date:
// Description:
// Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
module schema_Pos_070106_form_010_2 {
import from XSD all;
type MyType MyElement
with {
variant "element";
};
type record MyType
{
XSD.Integer myField
};
}
with {
encode "XML";
variant "namespace as 'schema:Pos_070106_form_010_2' prefix 'ns231_2'";
variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
variant "elementFormQualified";
}
/*******************************************************************************
* Copyright (c) 2000-2017 Ericsson Telecom AB
*
* XSD to TTCN-3 Translator version: CRL 113 200/6 R1A
*
* 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: schema_Pos_070106_form_011.ttcn
// Description:
// References:
// Rev:
// Prodnr:
// Updated: Wed Jan 11 11:44:55 2017
// Contact: http://ttcn.ericsson.se
//
////////////////////////////////////////////////////////////////////////////////
// Generated from file(s):
// - Pos_070106_form_011.xsd
// /* xml version = "1.0" encoding = "UTF-8" */
// /* targetnamespace = "schema:Pos_070106_form_011" */
////////////////////////////////////////////////////////////////////////////////
// Modification header(s):
//-----------------------------------------------------------------------------
// Modified by:
// Modification date:
// Description:
// Modification contact:
//------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////
module schema_Pos_070106_form_011 {
import from XSD all;
import from schema_Pos_070106_form_011_2 all;
type record MyElement
{
XSD.Integer myField optional,
MyType myField2,
schema_Pos_070106_form_011_2.MyElement myElement
}
with {
variant "element";
variant (myField) "attribute";
variant (myElement) "name as capitalized";
variant (myElement) "namespace as 'schema:Pos_070106_form_011_2' prefix 'ns232_2'";
};
}
with {
encode "XML";
variant "namespace as 'schema:Pos_070106_form_011' prefix 'ns232_1'";
variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
variant "attributeFormQualified";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment