Loading 07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_001/Neg_070104_minoccurs_and_maxoccurs_001.ttcn_ 0 → 100644 +15 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.1.4, a list with minOccurs 0 should not be mapped optional in TTCN-3 ** @verdict pass reject ***************************************************/ module Neg_070104_minoccurs_and_maxoccurs_001 { import from schema_Neg_070104_minoccurs_and_maxoccurs_001 language "XSD" all; // foo_list should not be optional template ElemE15b m_msg := {foo_list := omit, bar := 3.0} //#TC_Neg } 07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_001/Neg_070104_minoccurs_and_maxoccurs_001.xml 0 → 100644 +3 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- xmlns="schema:Neg_070104_minoccurs_and_maxoccurs_001" --> <!-- TODO Generated XML stub --> 07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_001/Neg_070104_minoccurs_and_maxoccurs_001.xsd 0 → 100644 +13 −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:Neg_070104_minoccurs_and_maxoccurs_001" xmlns:ns="schema:Neg_070104_minoccurs_and_maxoccurs_001"> <!-- The unrestricted case: --> <complexType name="e15b"> <sequence> <element name="foo" type="integer" minOccurs="0" maxOccurs="unbounded"/> <element name="bar" type="float"/> </sequence> </complexType> <element name="ElemE15b" type="ns:e15b" /> </schema> No newline at end of file 07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_002/Neg_070104_minoccurs_and_maxoccurs_002.ttcn_ 0 → 100644 +14 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.1.4, A restricted length list [5, 10] should not allow less than 5 elements ** @verdict pass reject ***************************************************/ module Neg_070104_minoccurs_and_maxoccurs_002 { import from schema_Neg_070104_minoccurs_and_maxoccurs_002 language "XSD" all; template ElemE15c m_msg := {foo_list := {1, 2, 3, 4}, bar := 3.0} //#TC_Neg } 07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_002/Neg_070104_minoccurs_and_maxoccurs_002.xml 0 → 100644 +3 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- xmlns="schema:Neg_070104_minoccurs_and_maxoccurs_002" --> <!-- TODO Generated XML stub --> Loading
07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_001/Neg_070104_minoccurs_and_maxoccurs_001.ttcn_ 0 → 100644 +15 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.1.4, a list with minOccurs 0 should not be mapped optional in TTCN-3 ** @verdict pass reject ***************************************************/ module Neg_070104_minoccurs_and_maxoccurs_001 { import from schema_Neg_070104_minoccurs_and_maxoccurs_001 language "XSD" all; // foo_list should not be optional template ElemE15b m_msg := {foo_list := omit, bar := 3.0} //#TC_Neg }
07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_001/Neg_070104_minoccurs_and_maxoccurs_001.xml 0 → 100644 +3 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- xmlns="schema:Neg_070104_minoccurs_and_maxoccurs_001" --> <!-- TODO Generated XML stub -->
07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_001/Neg_070104_minoccurs_and_maxoccurs_001.xsd 0 → 100644 +13 −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:Neg_070104_minoccurs_and_maxoccurs_001" xmlns:ns="schema:Neg_070104_minoccurs_and_maxoccurs_001"> <!-- The unrestricted case: --> <complexType name="e15b"> <sequence> <element name="foo" type="integer" minOccurs="0" maxOccurs="unbounded"/> <element name="bar" type="float"/> </sequence> </complexType> <element name="ElemE15b" type="ns:e15b" /> </schema> No newline at end of file
07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_002/Neg_070104_minoccurs_and_maxoccurs_002.ttcn_ 0 → 100644 +14 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.1.4, A restricted length list [5, 10] should not allow less than 5 elements ** @verdict pass reject ***************************************************/ module Neg_070104_minoccurs_and_maxoccurs_002 { import from schema_Neg_070104_minoccurs_and_maxoccurs_002 language "XSD" all; template ElemE15c m_msg := {foo_list := {1, 2, 3, 4}, bar := 3.0} //#TC_Neg }
07_mapping_xsd_components/0701_attributes_of_xsd_component_declarations/070104_minoccurs_and_maxoccurs/Neg_070104_minoccurs_and_maxoccurs_002/Neg_070104_minoccurs_and_maxoccurs_002.xml 0 → 100644 +3 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- xmlns="schema:Neg_070104_minoccurs_and_maxoccurs_002" --> <!-- TODO Generated XML stub -->