Commit d88c8236 authored by urbant's avatar urbant
Browse files

Test cases for section 7.7

parent 0a723839
Loading
Loading
Loading
Loading
+27 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.7.1, Verify conversion of the any element without namespace attribute
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// The XSD any element shall be translated, like other elements, to a field of 
// the enframing record type or field or union field (see clauses 7.6, 7.6.5 and
// 7.6.6). The type of this field shall be XSD.String and the name of the field
// shall be the result of applying clause 5.2.2 to "elem". Finally the 
// "anyElement..." encoding instruction shall be attached, which shall also 
// specify the namespace wildcards and/or list of namespaces which are allowed 
// or restricted to qualify the given element, in accordance with the namespace 
// attribute of the XSD any element, if present (see details in clause B.3.2).

module Pos_070701_the_any_element_001 {

   import from schema_Pos_070701_the_any_element_001 language "XSD" all;

   template MyType m_msg := {
       elem := "<ns:test>Hello world</ns:test>"
   };

//#TC

}
+2 −0
Original line number Original line 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_070701_the_any_element_001"><ns:test>Hello world</ns:test></ns:MyType>
 No newline at end of file
+13 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
  targetNamespace="schema:Pos_070701_the_any_element_001"
  xmlns:ns="schema:Pos_070701_the_any_element_001">
  <element name="test" type="string"/>
  <element name="MyType">
    <complexType>
      <sequence>
        <any/>
      </sequence>
    </complexType>
  </element>
</schema>
+27 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.7.1, Verify conversion of the any element with ##any namespace
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// The XSD any element shall be translated, like other elements, to a field of 
// the enframing record type or field or union field (see clauses 7.6, 7.6.5 and
// 7.6.6). The type of this field shall be XSD.String and the name of the field
// shall be the result of applying clause 5.2.2 to "elem". Finally the 
// "anyElement..." encoding instruction shall be attached, which shall also 
// specify the namespace wildcards and/or list of namespaces which are allowed 
// or restricted to qualify the given element, in accordance with the namespace 
// attribute of the XSD any element, if present (see details in clause B.3.2).

module Pos_070701_the_any_element_002 {

   import from schema_Pos_070701_the_any_element_002 language "XSD" all;

   template MyType m_msg := {
       elem := "<ns:test>Hello world</ns:test>"
   };

//#TC

}
+2 −0
Original line number Original line 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_070701_the_any_element_002"><ns:test>Hello world</ns:test></ns:MyType>
 No newline at end of file
Loading