Commit 97f33eea authored by pintar's avatar pintar
Browse files

Test for 7.6.2.2 done

parent 688550a1
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.6.2.2, Verify mapping of complex content derived by restriction:
 **                      AnyType is used as the base type and it is restricted to only two elements
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Pos_07060202_derived_by_restriction_001 {

    import from schema_Pos_07060202_derived_by_restriction_001 language "XSD" all;
    
    template E1 m_msg := {
        size := -200, 
        unit:= "string"
    };

//#TC
}
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<ns:e1  xmlns:xsi="http://www.w3.org/2001/XMLSchema" 
        xmlns:ns="schema:Pos_07060202_derived_by_restriction_001">
  <size>-200</size>
  <unit>string</unit>
</ns:e1>
+16 −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_07060202_derived_by_restriction_001"
    xmlns:ns="schema:Pos_07060202_derived_by_restriction_001">
  <complexType name="c1">
    <complexContent>
      <restriction base="anyType">
        <sequence>
           <element name="size" type="nonPositiveInteger"/>
           <element name="unit" type="NMTOKEN"/>
        </sequence>
      </restriction>
    </complexContent>
  </complexType>
  <element name="e1" type="ns:c1"/>
</schema>
 No newline at end of file