Loading 07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_001/Pos_0703_element_component_001.ttcn_ 0 → 100644 +19 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.3, Verify conversion of global element of simple type ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ // The following requirements are tested: // In case of XSD datatypes, and simple types defined locally as child of the // element, the type of the XSD element mapped to TTCN-3. module Pos_0703_element_component_001 { import from schema_Pos_0703_element_component_001 language "XSD" all; template MyType m_msg := "abc"; //#TC } 07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_001/Pos_0703_element_component_001.xml 0 → 100644 +2 −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_0703_element_component_001">abc</ns:MyType> No newline at end of file 07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_001/Pos_0703_element_component_001.xsd 0 → 100644 +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_0703_element_component_001" xmlns:ns="schema:Pos_0703_element_component_001"> <element name="MyType" type="string" /> </schema> 07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_002/Pos_0703_element_component_002.ttcn_ 0 → 100644 +20 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.3, Verify conversion of global element of user defined type ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ // The following requirements are tested: // In case of XSD user-defined types referenced by the type attribute of the // element, the TTCN-3 type generated for the referenced XSD type. module Pos_0703_element_component_002 { import from schema_Pos_0703_element_component_002 language "XSD" all; template MyBaseType m_typeBased := 1; template MyType m_msg := m_typeBased; //#TC } 07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_002/Pos_0703_element_component_002.xml 0 → 100644 +2 −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_0703_element_component_002">1</ns:MyType> No newline at end of file Loading
07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_001/Pos_0703_element_component_001.ttcn_ 0 → 100644 +19 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.3, Verify conversion of global element of simple type ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ // The following requirements are tested: // In case of XSD datatypes, and simple types defined locally as child of the // element, the type of the XSD element mapped to TTCN-3. module Pos_0703_element_component_001 { import from schema_Pos_0703_element_component_001 language "XSD" all; template MyType m_msg := "abc"; //#TC }
07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_001/Pos_0703_element_component_001.xml 0 → 100644 +2 −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_0703_element_component_001">abc</ns:MyType> No newline at end of file
07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_001/Pos_0703_element_component_001.xsd 0 → 100644 +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_0703_element_component_001" xmlns:ns="schema:Pos_0703_element_component_001"> <element name="MyType" type="string" /> </schema>
07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_002/Pos_0703_element_component_002.ttcn_ 0 → 100644 +20 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:7.3, Verify conversion of global element of user defined type ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ // The following requirements are tested: // In case of XSD user-defined types referenced by the type attribute of the // element, the TTCN-3 type generated for the referenced XSD type. module Pos_0703_element_component_002 { import from schema_Pos_0703_element_component_002 language "XSD" all; template MyBaseType m_typeBased := 1; template MyType m_msg := m_typeBased; //#TC }
07_mapping_xsd_components/0703_element_component/Pos_0703_element_component_002/Pos_0703_element_component_002.xml 0 → 100644 +2 −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_0703_element_component_002">1</ns:MyType> No newline at end of file