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

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

1、 ETSI ES 201 873-9 V4.9.1 (2018-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.9.1 (2018-05)2 Reference RES/MTS-201873-9 T3ed491 Keywords language, testing, TTCN-3, XML ETS

2、I 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: http:

3、/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 perceived di

4、fference 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 or

5、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/CommiteeSuppo

6、rtStaff.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 authoriza

7、tion of ETSI. The copyright and the foregoing restriction extend to reproduction in all media. ETSI 2018. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are trademarks of ETSI registered for the benefit of its Members. 3GPPTM and LTETMare trademarks of ETSI registered for the bene

8、fit of its Members and of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members. GSMand the GSM logo are trademarks registered and owned by the GSM Association. ETSI ETSI ES 201 873-9 V4.9.1 (2018-05)3 Contents Intellectual Property Rights 7g3Foreword . 7g3Modal v

9、erbs 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 12g35.0 Approach . 12g35.1 Namespaces and document references 13g35.1.

10、1 Namespaces . 13g35.1.2 Includes 14g35.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.3 Mapping of XSD schema components 22g35.4 Unsupp

11、orted features . 23g35.5 Conformance and compatibility 23g36 Built-in data types 24g36.0 General 24g36.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.1.6 WhiteSpace 29g36.1.7 MinInclusive 29g36.1.8 M

12、axInclusive . 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.3 Token . 37g36.2.4 Name 37g36.2.5 NMTOKEN . 37g

13、36.2.6 NCName 38g36.2.7 ID . 38g36.2.8 IDREF 38g3ETSI ETSI ES 201 873-9 V4.9.1 (2018-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 39g36.3.0 General. 39g36.3.1 Integer 39g36.3.2 Pos

14、itive 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 . 41g36.3.10 Short. 41g36.3.11 Unsigned Short 41g36.3.12 Byte 41g36.3.13 Unsigned byte 41g36.4 Float types . 41g36.

15、4.0 General. 41g36.4.1 Decimal 42g36.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 . 44g36.5.7 Gregorian month and day 44g36.5.8 Grego

16、rian day 44g36.5.9 Gregorian month 44g36.6 Sequence types 44g36.6.0 General . 44g36.6.1 NMTOKENS . 44g36.6.2 IDREFS . 45g36.6.3 ENTITIES 45g36.6.4 QName . 45g36.7 Boolean type 46g36.8 AnyType and anySimpleType types 46g37 Mapping XSD components 51g37.0 General 51g37.1 Attributes of XSD component dec

17、larations . 51g37.1.0 General . 51g37.1.1 Id 52g37.1.2 Ref . 52g37.1.3 Name 52g37.1.4 MinOccurs and maxOccurs 53g37.1.5 Default and Fixed 58g37.1.6 Form. 58g37.1.7 Type . 59g37.1.8 Mixed . 59g37.1.9 Abstract 59g37.1.10 Block and blockDefault . 60g37.1.11 Nillable 60g37.1.12 Use . 62g3ETSI ETSI ES 20

18、1 873-9 V4.9.1 (2018-05)5 7.1.13 Substitution group 62g37.1.14 Final . 62g37.1.15 Process contents . 62g37.2 Schema component 63g37.3 Element component . 63g37.4 Attribute and attribute group definitions . 64g37.4.1 Attribute element definitions . 64g37.4.2 Attribute group definitions . 65g37.5 Simp

19、leType components . 65g37.5.0 General . 65g37.5.1 Derivation by restriction 65g37.5.2 Derivation by list . 66g37.5.3 Derivation by union . 68g37.6 ComplexType components 71g37.6.0 General . 71g37.6.1 ComplexType containing simple content 72g37.6.1.0 General . 72g37.6.1.1 Extending simple content . 7

20、2g37.6.1.2 Restricting simple content 73g37.6.2 ComplexType containing complex content . 75g37.6.2.0 General . 75g37.6.2.1 Complex content derived by extension 75g37.6.2.2 Complex content derived by restriction . 81g37.6.3 Referencing group components . 83g37.6.4 All content . 86g37.6.5 Choice conte

21、nt . 87g37.6.5.0 General. 87g37.6.5.1 Choice with nested elements 88g37.6.5.2 Choice with nested group . 88g37.6.5.3 Choice with nested choice 89g37.6.5.4 Choice with nested sequence 89g37.6.5.5 Choice with nested any 90g37.6.6 Sequence content . 91g37.6.6.0 General . 91g37.6.6.1 Sequence with neste

22、d element content . 91g37.6.6.2 Sequence with nested group content 91g37.6.6.3 Sequence with nested choice content . 92g37.6.6.4 Sequence with nested sequence content . 92g37.6.6.5 Sequence with nested any content 93g37.6.6.6 Effect of the minOccurs and maxOccurs attributes on the mapping 93g37.6.7

23、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 109g37.10 Identity-constraint definition schema

24、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 B (normative): Encoding instructions 127g3B.0 Gen

25、eral . 127g3ETSI ETSI ES 201 873-9 V4.9.1 (2018-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 XSD data type identification . 129g3B.3.2 Any el

26、ement 129g3B.3.3 Any attributes 130g3B.3.4 Attribute 131g3B.3.5 AttributeFormQualified . 131g3B.3.6 Control namespace identification 132g3B.3.7 Default for empty 132g3B.3.8 Element . 132g3B.3.9 ElementFormQualified 132g3B.3.10 Embed values 133g3B.3.11 Form 133g3B.3.12 List. 134g3B.3.13 Name as . 134

27、g3B.3.14 Namespace identification 135g3B.3.15 Nillable elements . 135g3B.3.16 Use union. 135g3B.3.17 Text . 136g3B.3.18 Use number . 137g3B.3.19 Use order . 137g3B.3.20 Whitespace control 137g3B.3.21 Untagged elements 138g3B.3.22 Abstract . 138g3B.3.23 Block . 139g3B.3.24 Use type . 139g3B.3.25 Proc

28、ess 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 Example 2 . 145g3C.3 Example 3 . 146g3Annex D (i

29、nformative): 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 V4.9.1 (2018-05)7 Intellectual Property Right

30、s Essential patents IPRs essential or potentially essential to normative deliverables 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: “Intellectual Property Rights

31、 (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, including IPR searches, has

32、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. Trademarks The present document may include trademarks and/or traden

33、ames which are asserted and/or registered by their owners. ETSI claims no ownership of these except for any which are indicated as being the property of ETSI, and conveys no right to use or reproduce any trademark and/or tradename. Mention of those trademarks in the present document does not constit

34、ute an endorsement by ETSI of products, services or organizations associated with those trademarks. Foreword This ETSI Standard (ES) has been 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

35、the entire series can be found in part 1 1. Modal verbs terminology In the present document “shall“, “shall not“, “should“, “should not“, “may“, “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 expres

36、sion 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.9.1 (2018-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

37、 enable testing of XML-based systems, interfaces and protocols. 2 References 2.1 Normative 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 version applies. For non-specific

38、references, the latest version of the referenced document (including any amendments) applies. Referenced documents which are not found to be publicly available in the expected location might be found at https:/docbox.etsi.org/Reference. NOTE: While any hyperlinks included in this clause were valid a

39、t the time of publication, ETSI cannot guarantee their long term validity. The following referenced documents are necessary for the application 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

40、Core Language“. 2 Void. 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

41、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)

42、: “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

43、tatypes“. NOTE: Available at http:/www.w3.org/TR/xmlschema-2. ETSI ETSI ES 201 873-9 V4.9.1 (2018-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

44、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

45、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

46、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

47、ersion 3; TTCN-3 Language Extensions: Configuration and Deployment Support“. i.6 Void. i.7 Void. i.8 Void. i.9 Void. i.10 Void. 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 87

48、3-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“. i.14 W3C

49、XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes. NOTE: Available at http:/www.w3.org/TR/xmlschema11-2. ETSI ETSI ES 201 873-9 V4.9.1 (2018-05)10 3 Definitions and abbreviations 3.1 Definitions For the purposes of the present document, the terms and definitions given in ETSI ES 201 873-1 1, Recommendation ITU-T X.694 4 and the following apply: alphabetical order: way of sorting the XSD names based on the code positions of their characters according to ISO/IEC 10646 i.4 NOTE: During this sorting the g

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

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

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