ETSI ES 201 873-9-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 9 Using XML schema with TTCN-3 (V4 8 1).pdf

上传人:livefirmly316 文档编号:730794 上传时间:2019-01-08 格式:PDF 页数:153 大小:710.47KB
下载 相关 举报
ETSI ES 201 873-9-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 9 Using XML schema with TTCN-3 (V4 8 1).pdf_第1页
第1页 / 共153页
ETSI ES 201 873-9-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 9 Using XML schema with TTCN-3 (V4 8 1).pdf_第2页
第2页 / 共153页
ETSI ES 201 873-9-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 9 Using XML schema with TTCN-3 (V4 8 1).pdf_第3页
第3页 / 共153页
ETSI ES 201 873-9-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 9 Using XML schema with TTCN-3 (V4 8 1).pdf_第4页
第4页 / 共153页
ETSI ES 201 873-9-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 9 Using XML schema with TTCN-3 (V4 8 1).pdf_第5页
第5页 / 共153页
点击查看更多>>
资源描述

1、 ETSI ES 201 873-9 V4.8.1 (2017-05) Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3 ETSI STANDARD ETSI ETSI ES 201 873-9 V4.8.1 (2017-05)2 Reference RES/MTS-201873-9 T3XSD ed481 Keywords language, testing, TTCN-3, XML

2、 ETSI 650 Route des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice The present document can be downloaded from: h

3、ttp:/www.etsi.org/standards-search The present document may be made available in electronic versions and/or in print. The content of any electronic and/or print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any existing or perceive

4、d difference in contents between such versions and/or in print, the only prevailing document is the print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision

5、 or change of status. Information on the current status of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find errors in the present document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeS

6、upportStaff.aspx Copyright Notification No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm except as authorized by written permission of ETSI. The content of the PDF version shall not be modified without the written autho

7、rization of ETSI. The copyright and the foregoing restriction extend to reproduction in all media. European Telecommunications Standards Institute 2017. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members. 3GPPTM and LTE

8、 are Trade Marks of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members GSM and the GSM logo are Trade Marks registered and owned by the GSM Association. ETSI ETSI ES 201 873-9 V4.8.1 (2017-05)3 Contents Inte

9、llectual Property Rights 7g3Foreword . 7g3Modal verbs terminology 7g31 Scope 8g32 References 8g32.1 Normative references 8g32.2 Informative references . 9g33 Definitions and abbreviations . 10g33.1 Definitions . 10g33.2 Abbreviations 10g34 Introduction 11g35 Mapping XML Schemas 11g35.0 Approach . 11

10、g35.1 Namespaces and document references 13g35.1.1 Namespaces . 13g35.1.2 Includes 13g35.1.3 Imports. 14g35.1.4 Attributes of the XSD schema element 15g35.1.5 The control namespace 16g35.2 Name conversion . 16g35.2.1 General . 16g35.2.2 Name conversion rules . 17g35.2.3 Order of the mapping . 22g35.

11、3 Mapping of XSD schema components 22g35.4 Unsupported features . 23g35.5 Conformance and compatibility 23g36 Built-in data types 23g36.0 General 23g36.1 Mapping of facets 24g36.1.0 General. 24g36.1.1 Length 24g36.1.2 MinLength . 25g36.1.3 MaxLength . 25g36.1.4 Pattern 26g36.1.5 Enumeration . 27g36.

12、1.6 WhiteSpace 29g36.1.7 MinInclusive 29g36.1.8 MaxInclusive . 31g36.1.9 MinExclusive. 32g36.1.10 MaxExclusive 33g36.1.11 Total digits . 35g36.1.12 Fraction digits 35g36.1.13 Not specifically mapped facets 36g36.2 String types 36g36.2.0 General. 36g36.2.1 String . 37g36.2.2 Normalized string 37g36.2

13、.3 Token . 37g36.2.4 Name 37g36.2.5 NMTOKEN . 37g36.2.6 NCName 38g36.2.7 ID . 38g36.2.8 IDREF 38g3ETSI ETSI ES 201 873-9 V4.8.1 (2017-05)4 6.2.9 ENTITY . 38g36.2.10 Hexadecimal binary . 38g36.2.11 Base 64 binary . 38g36.2.12 Any URI 39g36.2.13 Language . 39g36.2.14 NOTATION . 39g36.3 Integer types 3

14、9g36.3.0 General. 39g36.3.1 Integer 39g36.3.2 Positive integer 39g36.3.3 Non-positive integer 40g36.3.4 Negative integer . 40g36.3.5 Non-negative integer 40g36.3.6 Long . 40g36.3.7 Unsigned long 40g36.3.8 Int . 40g36.3.9 Unsigned int . 40g36.3.10 Short. 41g36.3.11 Unsigned Short 41g36.3.12 Byte 41g3

15、6.3.13 Unsigned byte 41g36.4 Float types . 41g36.4.0 General. 41g36.4.1 Decimal 41g36.4.2 Float . 42g36.4.3 Double . 42g36.5 Time types . 42g36.5.0 General. 42g36.5.1 Duration . 43g36.5.2 Date and time . 43g36.5.3 Time . 43g36.5.4 Date 43g36.5.5 Gregorian year and month . 43g36.5.6 Gregorian year .

16、43g36.5.7 Gregorian month and day 44g36.5.8 Gregorian day 44g36.5.9 Gregorian month 44g36.6 Sequence types 44g36.6.0 General . 44g36.6.1 NMTOKENS . 44g36.6.2 IDREFS . 44g36.6.3 ENTITIES 44g36.6.4 QName . 45g36.7 Boolean type 45g36.8 AnyType and anySimpleType types 45g37 Mapping XSD components 50g37.

17、0 General 50g37.1 Attributes of XSD component declarations . 51g37.1.0 General . 51g37.1.1 Id 51g37.1.2 Ref . 51g37.1.3 Name 52g37.1.4 MinOccurs and maxOccurs 52g37.1.5 Default and Fixed 57g37.1.6 Form. 57g37.1.7 Type . 58g37.1.8 Mixed . 58g37.1.9 Abstract 58g37.1.10 Block and blockDefault . 59g37.1

18、.11 Nillable 59g37.1.12 Use . 61g3ETSI ETSI ES 201 873-9 V4.8.1 (2017-05)5 7.1.13 Substitution group 61g37.1.14 Final . 61g37.1.15 Process contents . 61g37.2 Schema component 62g37.3 Element component . 62g37.4 Attribute and attribute group definitions . 63g37.4.1 Attribute element definitions . 63g

19、37.4.2 Attribute group definitions . 64g37.5 SimpleType components . 64g37.5.0 General . 64g37.5.1 Derivation by restriction 64g37.5.2 Derivation by list . 65g37.5.3 Derivation by union . 67g37.6 ComplexType components 70g37.6.0 General . 70g37.6.1 ComplexType containing simple content 71g37.6.1.0 G

20、eneral . 71g37.6.1.1 Extending simple content . 71g37.6.1.2 Restricting simple content 72g37.6.2 ComplexType containing complex content . 74g37.6.2.0 General . 74g37.6.2.1 Complex content derived by extension 74g37.6.2.2 Complex content derived by restriction . 80g37.6.3 Referencing group components

21、 . 82g37.6.4 All content . 85g37.6.5 Choice content . 87g37.6.5.0 General. 87g37.6.5.1 Choice with nested elements 87g37.6.5.2 Choice with nested group . 87g37.6.5.3 Choice with nested choice 88g37.6.5.4 Choice with nested sequence 88g37.6.5.5 Choice with nested any 89g37.6.6 Sequence content . 90g3

22、7.6.6.0 General . 90g37.6.6.1 Sequence with nested element content . 90g37.6.6.2 Sequence with nested group content 90g37.6.6.3 Sequence with nested choice content . 91g37.6.6.4 Sequence with nested sequence content . 91g37.6.6.5 Sequence with nested any content 92g37.6.6.6 Effect of the minOccurs a

23、nd maxOccurs attributes on the mapping 93g37.6.7 Attribute definitions, attribute and attributeGroup references . 95g37.6.8 Mixed content 97g37.7 Any and anyAttribute 100g37.7.0 General . 100g37.7.1 The any element . 100g37.7.2 The anyAttribute element 104g37.8 Annotation . 109g37.9 Group components

24、 109g37.10 Identity-constraint definition schema components 110g38 Substitutions . 110g38.0 General 110g38.1 Element substitution 111g38.1.1 Head elements of substitution groups 111g38.1.2 Substitution group members 116g38.2 Type substitution . 116g3Annex A (normative): TTCN-3 module XSD 123g3Annex

25、B (normative): Encoding instructions 127g3B.0 General . 127g3ETSI ETSI ES 201 873-9 V4.8.1 (2017-05)6 B.1 General . 127g3B.2 Basic XML encode and variant attribute rules . 128g3B.2.1 The XML encode attribute 128g3B.2.2 Variant Attribute Overwriting Rules . 128g3B.3 Encoding instructions . 129g3B.3.1

26、 XSD data type identification . 129g3B.3.2 Any element 129g3B.3.3 Any attributes 130g3B.3.4 Attribute 131g3B.3.5 AttributeFormQualified . 131g3B.3.6 Control namespace identification 131g3B.3.7 Default for empty 132g3B.3.8 Element . 132g3B.3.9 ElementFormQualified 132g3B.3.10 Embed values 133g3B.3.11

27、 Form 133g3B.3.12 List. 133g3B.3.13 Name . 134g3B.3.14 Namespace identification 134g3B.3.15 Nillable elements . 135g3B.3.16 Use union. 135g3B.3.17 Text . 136g3B.3.18 Use number . 136g3B.3.19 Use order . 137g3B.3.20 Whitespace control 137g3B.3.21 Untagged elements 137g3B.3.22 Abstract . 138g3B.3.23 B

28、lock . 139g3B.3.24 Use type . 139g3B.3.25 Process the content of any elements and attributes . 140g3B.3.26 Transparent 140g3B.3.27 No Type . 141g3B.3.28 Number of fraction digits 141g3B.3.29 XML header control 142g3Annex C (informative): Examples . 143g3C.0 General . 143g3C.1 Example 1 . 143g3C.2 Ex

29、ample 2 . 145g3C.3 Example 3 . 146g3Annex D (informative): Deprecated features . 150g3D.1 Using the anyElement encoding instruction to record of fields . 150g3D.2 Using the XML language identifier string 150g3D.3 Id. 151g3Annex E (informative): Bibliography . 152g3History 153g3ETSI ETSI ES 201 873-9

30、 V4.8.1 (2017-05)7 Intellectual Property Rights IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found in ETSI SR 000 314: “In

31、tellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web server (https:/ipr.etsi.org/). Pursuant to the ETSI IPR Policy, no investigation, in

32、cluding IPR searches, has been carried out by ETSI. No guarantee can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or may become, essential to the present document. Foreword This ETSI Standard (ES) has been

33、produced by ETSI Technical Committee Methods for Testing and Specification (MTS). The present document is part 9 of a multi-part deliverable. Full details of the entire series can be found in part 1 1. Modal verbs terminology In the present document “shall“, “shall not“, “should“, “should not“, “may

34、“, “need not“, “will“, “will not“, “can“ and “cannot“ are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of provisions). “must“ and “must not“ are NOT allowed in ETSI deliverables except when used in direct citation. ETSI ETSI ES 201 873-9 V4

35、.8.1 (2017-05)8 1 Scope The present document defines the mapping rules for W3CXML Schema (as defined in 7 to 9) to TTCN-3 as defined in ETSI ES 201 873-1 1 to enable testing of XML-based systems, interfaces and protocols. 2 References 2.1 Normative references References are either specific (identifi

36、ed by date of publication and/or edition number or version number) or non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the referenced document (including any amendments) applies. Referenced documents which are not found to be p

37、ublicly available in the expected location might be found at https:/docbox.etsi.org/Reference. NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee their long term validity. The following referenced documents are necessary for the applicatio

38、n of the present document. 1 ETSI ES 201 873-1: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 1: TTCN-3 Core Language“. 2 ETSI ES 201 873-7: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 7: Us

39、ing ASN.1 with TTCN-3“. 3 Recommendation ITU-T X.680: “Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation“. 4 Recommendation ITU-T X.694: “Information technology - ASN.1 encoding rules: Mapping W3C XML schema definitions into ASN.1“. 5 World Wide Web Conso

40、rtium W3C Recommendation: “Extensible Markup Language (XML) 1.1“. NOTE: Available at http:/www.w3.org/TR/xml11. 6 World Wide Web Consortium W3C Recommendation (2006): “Namespaces in XML 1.0“. NOTE: Available at http:/www.w3.org/TR/REC-xml-names/. 7 World Wide Web Consortium W3C Recommendation (2004)

41、: “XML Schema Part 0: Primer“. NOTE: Available at http:/www.w3.org/TR/xmlschema-0. 8 World Wide Web Consortium W3C Recommendation (2004): “XML Schema Part 1: Structures“. NOTE: Available at http:/www.w3.org/TR/xmlschema-1. 9 World Wide Web Consortium W3C Recommendation (2004): “XML Schema Part 2: Da

42、tatypes“. NOTE: Available at http:/www.w3.org/TR/xmlschema-2. ETSI ETSI ES 201 873-9 V4.8.1 (2017-05)9 2.2 Informative references References are either specific (identified by date of publication and/or edition number or version number) or non-specific. For specific references, only the cited versio

43、n applies. For non-specific references, the latest version of the referenced document (including any amendments) applies. NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee their long term validity. The following referenced documents are n

44、ot necessary for the application of the present document but they assist the user with regard to a particular subject area. i.1 World Wide Web Consortium W3C Recommendation: “SOAP version 1.2, Part 1: Messaging Framework“. NOTE: Available at http:/www.w3.org/TR/soap12. i.2 ISO 8601 (2004): “Data ele

45、ments and interchange formats - Information interchange - Representation of dates and times“. i.3 Void. i.4 ISO/IEC 10646 (2012): “Information technology - Universal Coded Character Set (UCS)“. i.5 ETSI ES 202 781: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation v

46、ersion 3; TTCN-3 Language Extensions: Configuration and Deployment Support“. i.6 ETSI ES 202 782: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: TTCN-3 Performance and Real Time Testing“. i.7 ETSI ES 202 784: “Methods for Te

47、sting and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Advanced Parameterization“. i.8 ETSI ES 202 785: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Behaviour Types“. i.

48、9 ETSI ES 202 786: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Support of interfaces with continuous signals“. i.10 ETSI ES 202 789: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation vers

49、ion 3; TTCN-3 Language Extensions: Extended TRI“. i.11 ETSI ES 201 873-7: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 7: Using ASN.1 with TTCN-3“. i.12 ETSI ES 201 873-8: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 8: The IDL to TTCN-3 Mapping “. i.13 ETSI ES 201 873-11: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 11: Using JSON with TTCN-3“. ETSI ETSI

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1