ANSI INCITS ISO IEC 19757-2 AMD 1-2006 Information technology Document Schema Definition Language (DSDL) Part 2 Regular-grammar-based validation RELAX NG Amendment 1 Compact Syntax.pdf
《ANSI INCITS ISO IEC 19757-2 AMD 1-2006 Information technology Document Schema Definition Language (DSDL) Part 2 Regular-grammar-based validation RELAX NG Amendment 1 Compact Syntax.pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS ISO IEC 19757-2 AMD 1-2006 Information technology Document Schema Definition Language (DSDL) Part 2 Regular-grammar-based validation RELAX NG Amendment 1 Compact Syntax.pdf(16页珍藏版)》请在麦多课文档分享上搜索。
1、INCITS/ISO/IEC 19757-2:2003/Amd.1:20062008 (ISO/IEC 19757-2:2003/Amd.1:2006, IDT) Information technology Document Schema DefinitionLanguage (DSDL) Part 2: Regular-grammar-based validation RELAX NG,Amendment 1: Compact SyntaxINCITS/ISO/IEC 19757-2:2003/Amd.1:20062008(ISO/IEC 19757-2:2003/Amd.1:2006,
2、IDT)INCITS/ISO/IEC 19757-2:2003/Amd.1:20062008 ii ITIC 2008 All rights reserved PDF disclaimer This PDF file may contain 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
3、and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility 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 softw
4、are products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters 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
5、 found, please inform the Central Secretariat at the address given below. Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard. Date of ANSI Approval: 7/1/2008 Published by American National Standards Institute, 25 West 43rd Street, New Yo
6、rk, New York 10036 Copyright 2008 by Information Technology Industry Council (ITI). All rights reserved. These materials are subject to copyright claims of International Standardization Organization (ISO), International Electrotechnical Commission (IEC), American National Standards Institute (ANSI),
7、 and Information Technology Industry Council (ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic retrieval system, without the prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street N
8、W, Washington, DC 20005. Printed in the United States of America INCITS/ISO/IEC 19757-2:2003/Amd.1:20062008 ITIC 2008 All rights reserved iiiForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for world
9、wide standardization. National bodies 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
10、 fields of mutual interest. Other international 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 draf
11、ted in accordance with the rules given 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 Inter
12、national Standard requires approval by 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. A
13、mendment 1 to ISO/IEC 19757-2:2003 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 34, Document description and processing languages. 1Information technology Document Schema Definition Language (DSDL) Part 2: Regular-grammar-based validation RELAX NG
14、AMENDMENT 1: Compact Syntax Page 8, Clause 5Add the following sentence at the end of Clause 5:An alternative compact syntax is described in Annex C.Page 34Add Annex C before the Bibliography.Annex C(normative)RELAX NG Compact SyntaxC.1 IntroductionThis Annex describes a compact, non-XML syntax for R
15、ELAX NG.The goals of the compact syntax are to: maximize readability support all features of RELAX NG; it must be possible to translate a schema from the XML syntax to the compactsyntax and back without losing significant information support separate translation; a RELAX NG schema may be spread amon
16、gst multiple files; it must be possible torepresent each of the files separately in the compact syntax; the representation of each file must not depend onthe other filesC.2 SyntaxThe following is a summary of the syntax in EBNF. Square brackets are used to indicate optionality. The start symbolis to
17、pLevel. ITIC 2008 All rights reserved INCITS/ISO/IEC 19757-2:2003/Amd.1:200620082 topLevel :=decl* (pattern | grammarContent*)decl :=(“namespace“ identifierOrKeyword “=“ namespaceURILiteral)| (“default“ “namespace“ identifierOrKeyword “=“ namespaceURILiteral)| (“datatypes“ identifierOrKeyword “=“ li
18、teral)pattern :=(“element“ nameClass “ pattern “)| (“attribute“ nameClass “ pattern “)| (pattern (“,“ pattern)+)| (pattern (“ instead, either (foo | bar),baz or foo | (bar, baz) must be used. A similar restriction applies to name classes and the use of the | and - operators.These restrictions are no
19、t expressed in the above EBNF.The value of an anyURILiteral specified with include or external is a URI reference to a grammar in the compactsyntax.C.3 Lexical structureWhitespace is allowed between tokens. Tokens are the strings occurring in double quotes in the EBNF in C.2, exceptthat literalSegme
20、nt, nsName, CName, identifier and quotedIdentifer are single tokens.Comments are also allowed between tokens. Comments start with a # and continue to the end of the line. Commentsstarting with # are treated specially; see C.5.A Unicode character with hex code N can be represented by the escape seque
21、nce xN. Using such an escapesequence is completely equivalent to the entering the corresponding character directly. For example,element x66x6fx6f empty is equivalent toelement foo empty ITIC 2008 All rights reserved INCITS/ISO/IEC 19757-2:2003/Amd.1:20062008 5C.4 DeclarationsA datatypes declaration
22、declares a prefix used in a QName identifying a datatype. For example,datatypes xsd = “http:/www.w3.org/2001/XMLSchema-datatypes“element height xsd:double In fact, in the above example, the datatypes declaration is not required: the xsd prefix is predeclared to the aboveURI.A namespace declaration d
23、eclares a prefix used in a QName specifying the name of an element or attribute. Forexample,namespace rng = “http:/relaxng.org/ns/structure/1.0“element rng:text empty As in XML, the xml prefix is predeclared.A default namespace declaration declares the namespace used for unprefixed names specifying
24、the name of anelement (but not of an attribute). For example,default namespace = “http:/“element foo attribute bar string is equivalent tonamespace ex = “http:/“element ex:foo attribute bar string A default namespace declaration may have a prefix as well. For example,default namespace ex = “http:/“i
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITSISOIEC197572AMD12006INFORMATIONTECHNOLOGYDOCUMENTSCHEMADEFINITIONLANGUAGEDSDLPART2REGULARGRAMMARBASEDVALIDATIONRELAXNGAMENDMENT1COMPACTSYNTAXPDF

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