ISO IEC 22537-2006 Information technology - ECMAScript for XML (E4X) specification《信息技术 XML(E4X)用ECMAScript规范》.pdf
《ISO IEC 22537-2006 Information technology - ECMAScript for XML (E4X) specification《信息技术 XML(E4X)用ECMAScript规范》.pdf》由会员分享,可在线阅读,更多相关《ISO IEC 22537-2006 Information technology - ECMAScript for XML (E4X) specification《信息技术 XML(E4X)用ECMAScript规范》.pdf(110页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference number ISO/IEC 22537:2006(E) ISO/IEC 2006INTERNATIONAL STANDARD ISO/IEC 22537 First edition 2006-02-15Information technology ECMAScript for XML (E4X) specification Technologies de linformation ECMAScript pour spcification XML (E4X) ISO/IEC 22537:2006(E) PDF disclaimer This PDF file may co
2、ntain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsi
3、bility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation p
4、arameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. ISO/IEC 2006 All rights reserved. Unless
5、otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copy
6、right office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2006 All rights reservedISO/IEC 22537:2006(E) ISO 2006 All rights reserved iiiContents Foreword. v Introduction . vi 1 Scope 1 2 Ref
7、erences1 2.1 Normative References.1 2.2 Informative References .1 3 Definitions 2 4 Conformance3 5 Motivation.3 5.1 The Rise of XML Processing 3 5.2 Current XML Processing Approaches.3 5.3 The E4X Approach.4 6 Design Principles.4 7 Notational Conventions 5 7.1 Algorithm Conventions .5 8 Lexical Conv
8、entions9 8.1 Context Keywords .10 8.2 Punctuators 10 8.3 XML Initialiser Input Elements11 9 Types.12 9.1 The XML Type.12 9.2 The XMLList Type 22 9.3 The AttributeName Type .29 9.4 The AnyName Type30 10 Type Conversion30 10.1 ToString 30 10.2 ToXMLString (input argument, AncestorNamespaces, IndentLev
9、el)32 10.3 ToXML.35 10.4 ToXMLList.39 10.5 ToAttributeName40 10.6 ToXMLName .41 11 Expressions42 11.1 Primary Expressions .42 11.2 Left-Hand-Side Expressions.48 11.3 Unary Operators.55 11.4 Additive Operators.56 11.5 Equality Operators.57 11.6 Assignment Operators 58 12 Statements62 12.1 The default
10、 xml namespace Statement .62 12.2 The for-in Statement63 12.3 The for-each-in Statement 65 13 Native E4X Objects 67 13.1 The Global Object 67 13.2 Namespace Objects.68 ISO/IEC 22537:2006(E) iv ISO/IEC 2006 All rights reserved13.3 QName Objects . 70 13.4 XML Objects. 74 13.5 XMLList Objects 92 14 Err
11、ors 100 Annex A (normative) Optional Features. 101 ISO/IEC 22537:2006(E) ISO 2006 All rights reserved vForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies
12、that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other inte
13、rnational organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with the rules given
14、 in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by
15、 at least 75 % of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC 22537 was prepared by Joint Tec
16、hnical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environments and system software interfaces, and was adopted (as Ecma-357), under a special “fast-track procedure”, by Joint Technical Committee ISO/IEC JTC 1, Information technology, in parallel
17、 with its approval by national bodies of ISO and IEC. ISO/IEC 22537:2006(E) vi ISO/IEC 2006 All rights reservedIntroduction On 13 June 2002, a group of companies led by BEA Systems proposed a set of programming language extensions adding native XML support to ECMAScript (ISO/IEC 16262). The programm
18、ing language extensions were designed to provide a simple, familiar, general purpose XML programming model that flattens the XML learning curve by leveraging the existing skills and knowledge of one of the largest developer communities worldwide. The benefits of this XML programming model include re
19、duced code complexity, tighter revision cycles, faster time to market, decreased XML footprint requirements and looser coupling between code and XML data. The ECMAScript group (Ecma TC39-TG1) unanimously agreed to the proposal and established a sub-group to standardize the syntax and semantics of a
20、general purpose, cross platform, vendor neutral set of programming language extensions called ECMAScript for XML (E4X). The development of this International Standard started on 8 August 2002. This Standard was developed as an extension to ECMAScript Edition 3, but may be applied to other versions o
21、f ECMAScript as well. This International Standard adds native XML datatypes to the ECMAScript language, extends the semantics of familiar ECMAScript operators for manipulating XML data and adds a small set of new operators for common XML operations, such as searching and filtering. It also adds supp
22、ort for XML literals, namespaces, qualified names and other mechanisms to facilitate XML processing. This International Standard will be integrated into future editions of ISO/IEC 16262 (ECMAScript). The ECMAScript group is working on significant enhancements for future editions of the ECMAScript la
23、nguage, including mechanisms for defining XML types using the XML Schema language and support for classes. INTERNATIONAL STANDARD ISO/IEC 22537:2006(E) ISO/IEC 2006 All rights reserved 1Information technology ECMAScript for XML (E4X) specification 1 Scope This International Standard defines the synt
24、ax and semantics of ECMAScript for XML (E4X), a set of programming language extensions adding native XML support to ECMAScript. 2 References 2.1 Normative References The following referenced documents are indispensable for the application of this document. For dated references, only the edition cite
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIEC225372006INFORMATIONTECHNOLOGYECMASCRIPTFORXMLE4XSPECIFICATION 信息技术 XMLE4X ECMASCRIPT 规范 PDF

链接地址:http://www.mydoc123.com/p-1257036.html