Commit 85e6503d authored by stancakapost's avatar stancakapost
Browse files

new tests for 5.2.2 Name conversion: Asure that namespaces are ordered

lexically
parent c1974b0d
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  9:5.2.3, Asure that namespaces are ordered lexically
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Pos_050203_order_of_the_mapping_004 {

    import from schema_Pos_050203_order_of_the_mapping_004 language "XSD" all;

    template MyType m_msg := {f1 := {a:= 1}, f2 := {a:= 2}}

//#TC
}
+8 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<ns:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ns="schema:Pos_050203_order_of_the_mapping_004"
	xmlns:ns1="Pos_050203_order_of_the_mapping_004__MyNamespace"
	xmlns:ns2="Pos_050203_order_of_the_mapping_004_MyNamespace">
	<ns1:f1><ns1:a>1</ns1:a></ns1:f1>
	<ns2:f2><ns2:a>2</ns2:a></ns2:f2>
</ns:MyType>
 No newline at end of file
+17 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:ns1="Pos_050203_order_of_the_mapping_004__MyNamespace"
    xmlns:ns2="Pos_050203_order_of_the_mapping_004_MyNamespace"
    targetNamespace="schema:Pos_050203_order_of_the_mapping_004"
    xmlns:ns="schema:Pos_050203_order_of_the_mapping_004">
  <import namespace="Pos_050203_order_of_the_mapping_004__MyNamespace" schemaLocation="Pos_050203_order_of_the_mapping_004_1.xsd"/>
  <import namespace="Pos_050203_order_of_the_mapping_004_MyNamespace" schemaLocation="Pos_050203_order_of_the_mapping_004_2.xsd"/>
  <element name="MyType">
    <complexType>
     <sequence>
      <element name="f1" type="ns1:MyType1"/>
      <element name="f2" type="ns2:MyType2"/>
     </sequence>
    </complexType>
  </element>  
</schema>
 No newline at end of file
+10 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="Pos_050203_order_of_the_mapping_004__MyNamespace"
    xmlns:ns="Pos_050203_order_of_the_mapping_004__MyNamespace">
  <complexType name="Test1">
    <sequence>
		<element name="a" type="integer"/>
    </sequence>
  </complexType>
</schema>
 No newline at end of file
+10 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="Pos_050203_order_of_the_mapping_004_MyNamespace"
    xmlns:ns="Pos_050203_order_of_the_mapping_004_MyNamespace">
  <complexType name="Test2">
    <sequence>
		<element name="a" type="integer"/>
    </sequence>
  </complexType>
</schema>
 No newline at end of file
Loading