Commit c7a0c340 authored by stancakapost's avatar stancakapost
Browse files

added test with multiple xsd files

parent 2521b86d
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:5.1.2, Test inclusion of a schema with the same namespace
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// XSD include element information items shall be ignored if the included schema element has the same target 
// namespace as the including one (implying the absence of the target namespace). 

module Pos_050102_includes_001 {

   import from schema_Pos_050102_includes_001 language "XSD" all;

   template MyType m_msg := 1;

//#TC

}
+2 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ns1:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="schema:Pos_050102_includes_001">1</ns1:MyType>
 No newline at end of file
+7 −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="schema:Pos_050102_includes_001"
  xmlns:ns1="schema:Pos_050102_includes_001">
  <include schemaLocation="Pos_050102_includes_001_1.xsd" />
  <element name="MyType2" type="integer"/>
</schema>
+6 −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="schema:Pos_050102_includes_001"
  xmlns:ns2="schema:Pos_050102_includes_001">
  <element name="MyType" type="integer"/>
</schema>
 No newline at end of file