SANS 19757-4-2010 Information technology - Document Schema Definition Languages (DSDL) Part 4 Namespace-based Validation Dispatching Language (NVDL)《信息技术 文件计划规定语言(DSDL) 第4部分:基于名称空间.pdf

上传人:周芸 文档编号:1029941 上传时间:2019-03-24 格式:PDF 页数:60 大小:867.24KB
下载 相关 举报
SANS 19757-4-2010 Information technology - Document Schema Definition Languages (DSDL) Part 4 Namespace-based Validation Dispatching Language (NVDL)《信息技术 文件计划规定语言(DSDL) 第4部分:基于名称空间.pdf_第1页
第1页 / 共60页
SANS 19757-4-2010 Information technology - Document Schema Definition Languages (DSDL) Part 4 Namespace-based Validation Dispatching Language (NVDL)《信息技术 文件计划规定语言(DSDL) 第4部分:基于名称空间.pdf_第2页
第2页 / 共60页
SANS 19757-4-2010 Information technology - Document Schema Definition Languages (DSDL) Part 4 Namespace-based Validation Dispatching Language (NVDL)《信息技术 文件计划规定语言(DSDL) 第4部分:基于名称空间.pdf_第3页
第3页 / 共60页
SANS 19757-4-2010 Information technology - Document Schema Definition Languages (DSDL) Part 4 Namespace-based Validation Dispatching Language (NVDL)《信息技术 文件计划规定语言(DSDL) 第4部分:基于名称空间.pdf_第4页
第4页 / 共60页
SANS 19757-4-2010 Information technology - Document Schema Definition Languages (DSDL) Part 4 Namespace-based Validation Dispatching Language (NVDL)《信息技术 文件计划规定语言(DSDL) 第4部分:基于名称空间.pdf_第5页
第5页 / 共60页
点击查看更多>>
资源描述

1、 Collection of SANS standards in electronic format (PDF) 1. Copyright This standard is available to staff members of companies that have subscribed to the complete collection of SANS standards in accordance with a formal copyright agreement. This document may reside on a CENTRAL FILE SERVER or INTRA

2、NET SYSTEM only. Unless specific permission has been granted, this document MAY NOT be sent or given to staff members from other companies or organizations. Doing so would constitute a VIOLATION of SABS copyright rules. 2. Indemnity The South African Bureau of Standards accepts no liability for any

3、damage whatsoever than may result from the use of this material or the information contain therein, irrespective of the cause and quantum thereof. ISBN 978-0-626-23731-8 SANS 19757-4:2010Edition 1 ISO/IEC 19757-4:2006Edition 1 SOUTH AFRICAN NATIONAL STANDARD Information technology Document Schema De

4、finition Languages (DSDL) Part 4: Namespace-based Validation Dispatching Language (NVDL) This national standard is the identical implementation of ISO/IEC 19757-4:2006, and is adopted with the permission of the International Organization for Standardization and the International Electrotechnical Com

5、mission. Published by SABS Standards Division 1 Dr Lategan Road Groenkloof Private Bag X191 Pretoria 0001Tel: +27 12 428 7911 Fax: +27 12 344 1568 www.sabs.co.za SABS SANS 19757-4:2010 Edition 1 ISO/IEC 19757-4:2006 Edition 1 Table of changes Change No. Date Scope National foreword This South Africa

6、n standard was approved by National Committee SABS SC 71L, Information technology Document description and processing languages, in accordance with procedures of the SABS Standards Division, in compliance with annex 3 of the WTO/TBT agreement. This SANS document was published in March 2010. Referenc

7、e numberISO/IEC 19757-4:2006(E)ISO/IEC 2006INTERNATIONAL STANDARD ISO/IEC19757-4First edition2006-06-01Information technology Document Schema Definition Languages (DSDL) Part 4: Namespace-based Validation Dispatching Language (NVDL) Technologies de linformation Langages de dfinition de schma de docu

8、ments (DSDL) Partie 4: Langage de diffusion de validation despace de nom orient (NVDL) SANS 19757-4:2010This s tandard may only be used and printed by approved subscription and freemailing clients of the SABS .ISO/IEC 19757-4:2006(E) PDF disclaimer This PDF file may contain embedded typefaces. In ac

9、cordance 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 responsibility of not infringing Adobes

10、 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 parameters were optimized for pr

11、inting. 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 otherwise specified, no part of

12、 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 copyright office Case postale 56 CH

13、-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 reservedSANS 19757-4:2010This s tandard may only be used and printed by approved subscription and freemailing clients of the SABS .ISO/IEC 19757-4:

14、2006(E) ISO/IEC 2006 All rights reserved iiiContents PageForeword vIntroduction vi1 Scope. 12 Normative references 13 Terms and definitions. 24 Notation 35 Data model. 35.1 General. 35.2 Creating a data model from the infoset. 46 Syntax 66.1 General. 66.2 Full syntax. 66.3 Simple syntax 86.4 Simplif

15、ication. 106.4.1 General. 106.4.2 Annotations. 106.4.3 Whitespace 106.4.4 message attribute 106.4.5 mustSupport attribute. 106.4.6 schemaType attribute of rules elements 116.4.7 rules without mode children. 116.4.8 child mode elements of validate, allow, reject, attach, unwrap, attachPlaceholder, or

16、 context elements 116.4.9 namespace or anyNamespace elements 116.4.10 mode inclusion 116.4.11 competition within mode . 126.4.12 default anyNamespace .126.4.13 allow and reject .126.4.14 useMode attribute. 137 Primitive operations 137.1 General. 137.2 Creating element sections and attribute sections

17、. 137.3 Decomposition of element sections by trigger elements 157.4 Attaching attribute sections to elements 177.5 Attaching element sequences to elements. 177.6 Creating placeholder elements from element sections. 187.7 Converting attribute sections to empty elements 188 Semantics 188.1 General. 18

18、8.2 Preliminaries 198.3 Stage 1: Creating element and attribute sections 208.4 Stage 2: Constructing interpretations. 208.5 Stage 3: Combining sections. 208.6 Stage 4: Filtering of the combined sections. 228.7 Stage 5: Validation 228.7.1 General. 228.7.2 Determining schemas and schema languages 228.

19、7.3 Schema rewriting for attribute sections 238.7.4 Options. 239 Conformance. 23SANS 19757-4:2010This s tandard may only be used and printed by approved subscription and freemailing clients of the SABS .ISO/IEC 19757-4:2006(E) iv ISO/IEC 2006 All rights reservedC.2 RELAX NG schema. 35C.3 NVDL script

20、 40Annex D (informative) Example 42D.1 General. 42D.2 RDF embedded within XHTML. 42D.2.1 Simplification. 42D.2.2 Dispatching 43D.2.2.1 General. 43D.2.2.2 Stage 1. 43D.2.2.3 Stage 2. 44D.2.2.4 Stage 3. 44D.2.2.5 Stage 4. 44D.2.2.6 Stage 5. 44D.3 XHTML 2.0 and XForms 44D.3.1 Simplification . 44D.3.2 D

21、ispatching 47D.3.2.1 General. 47D.3.2.2 Stage 1. 47D.3.2.3 Stage 2. 47D.3.2.4 Stage 3. 48D.3.2.5 Stage 4. 48D.3.2.6 Stage 5. 49Bibliography. 50Annex A (normative) Full syntax in RELAX NG 24Annex B (normative) Simple syntax in RELAX NG 31Annex C (informative) An NVDL script and RELAX NG schema for th

22、e full syntax 35C.1 General. 35SANS 19757-4:2010This s tandard may only be used and printed by approved subscription and freemailing clients of the SABS .ISO/IEC 19757-4:2006(E) ISO/IEC 2006 All rights reserved vForeword ISO (the International Organization for Standardization) and IEC (the Internati

23、onal Electrotechnical Commission) form the specialized system for worldwide 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

24、 of technical activity. ISO and IEC technical committees collaborate in 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 joi

25、nt technical committee, ISO/IEC JTC 1. International Standards are drafted 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 committe

26、e are circulated to national bodies for voting. Publication as an International 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 n

27、ot be held responsible for identifying any or all such patent rights. ISO/IEC 19757-4 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 34, Document description and processing languages. ISO/IEC 19757 consists of the following parts, under the general t

28、itle Information technology Document Schema Definition Languages (DSDL): Part 1: Overview Part 2: Regular-grammar-based validation RELAX NG Part 3: Rule-based validation Schematron Part 4: Namespace-based Validation Dispatching Language (NVDL) The following parts are under preparation: Part 5: Datat

29、ypes Part 6: Path-based integrity constraints Part 7: Character repertoire description language CRDL Part 8: Document schema renaming language DSRL Part 9: Datatype- and namespace-aware DTDs Part 10: Validation management SANS 19757-4:2010This s tandard may only be used and printed by approved subsc

30、ription and freemailing clients of the SABS .ISO/IEC 19757-4:2006(E) vi ISO/IEC 2006 All rights reservedIntroductionISO/IEC 19757 defines a set of Document Schema Definition Languages (DSDL) that can be used to specify oneor more validation processes performed against Extensible Markup Language (XML

31、) documents. A number ofvalidation technologies are standardized in DSDL to complement those already available as standards or fromindustry.The main objective of ISO/IEC 19757 is to bring together different validation-related technologies to form a singleextensible framework that allows technologies

32、 to work in series or in parallel to produce a single or a set ofvalidation results. The extensibility of DSDL accommodates validation technologies not yet designed or specified.The motivations of this part of ISO/IEC 19757 are twofold. One is to allow the interworking of schemas describingdifferent

33、 markup vocabularies. The other is to allow these schemas to be written in different schema languages. Forthis purpose, this part of ISO/IEC 19757 specifies a Namespace-based Validation Dispatching Language (NVDL).The structure of this part of ISO/IEC 19757 is as follows. Clause 5 describes the data

34、 model, which is theabstraction of an XML document used throughout the rest of the document. Clause 6 describes the full syntax andthe simple syntax of NVDL scripts, and further describes the transformation from the full syntax to the simplesyntax. Clause 7 describes primitive operations for the NVD

35、L data model, which are used for defining the NVDLsemantics. Clause 8 describes the semantics of a correct NVDL script in the simple syntax; the semantics specifyhow elements and attributes in a given document are dispatched to different validators and which schema is usedby each of these validators

36、. Clause 9 describes conformance requirements for NVDL dispatchers. Annex A andAnnex B define the full syntax and the simple syntax using RELAX NG, respectively. Annex C defines the fullsyntax using NVDL and RELAX NG. Finally, Annex D provides examples of the application of NVDL.The origin of NVDL i

37、s JIS TR X 00444, which was created and then submitted to ISO/IEC JTC1 as a fast-trackISO/IEC DTR 22250-25 by the Japanese national member body for SC 34.SANS 19757-4:2010This s tandard may only be used and printed by approved subscription and freemailing clients of the SABS .INTERNATIONAL STANDARD

38、ISO/IEC 19757-4:2006(E) ISO/IEC 2006 All rights reserved 1Information technology Document Schema Definition Languages (DSDL) Part 4: Namespace-based Validation Dispatching Language (NVDL) 1 ScopeThis part of ISO/IEC 19757 specifies a Namespace-based Validation Dispatching Language (NVDL). An NVDLscr

39、ipt controls the dispatching of elements or attributes in a given XML document to different validators,depending on the namespaces of the elements or attributes. An NVDL script also specifies which schemas areused by these validators. These schemas may be written in any schema languages, including t

40、hose specified byISO/IEC 19757.2 Normative referencesThe following referenced documents are indispensable for the application of this document. For dated references,only the edition cited applies. For undated references, the latest edition of the referenced document (including anyamendments) applies

41、.NOTE Each of the following documents has a unique identifier that is used to cite the document in the text. The uniqueidentifier consists of the part of the reference up to the first comma.ISO/IEC 19757-2, Information technology Document Schema Definition Languages (DSDL) Part 2:Regular-grammar-bas

42、ed validation RELAX NGW3C XML, Extensible Markup Language (XML) 1.0 (Third Edition), W3C Recommendation, 04 February 2004,available at http:/www.w3.org/TR/2004/REC-xml-20040204/W3C XML-Names, Namespaces in XML, W3C Recommendation, 14 January 1999, available athttp:/www.w3.org/TR/1999/REC-xml-names-1

43、9990114/W3C XML-Infoset, XML Information Set (Second Edition), W3C Recommendation, 4 February 2004, available athttp:/www.w3.org/TR/2004/REC-xml-infoset-20040204/W3C XML Schema Part 2, XML Schema Part 2: Datatypes (Second Edition), W3C Recommendation, 28 October2004, available at http:/www.w3.org/TR

44、/2004/REC-xmlschema-2-20041028/IETF RFC 2045, Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies,Internet Standards Track Specification, November 1996, available at http:/www.ietf.org/rfc/rfc2045.txtIETF RFC 2046, Multipurpose Internet Mail Extensions (MIME) Par

45、t Two: Media Types, Internet Standards TrackSpecification, November 1996, available at http:/www.ietf.org/rfc/rfc2046.txtIETF RFC 3023, XML Media Types, Internet Standards Track Specification, August 1998, available athttp:/www.ietf.org/rfc/rfc3023.txtIETF RFC 3986, Uniform Resource Identifiers (URI

46、): Generic Syntax, Internet Standards Track Specification,January 2005, available at http:/www.ietf.org/rfc/rfc3986.txtIETF RFC 3987, Internationalized Resource Identifiers (IRIs), Internet Standards Track Specification, January2005, available at http:/www.ietf.org/rfc/rfc3987.txtSANS 19757-4:2010Th

47、is s tandard may only be used and printed by approved subscription and freemailing clients of the SABS .ISO/IEC 19757-4:2006(E) 2 ISO/IEC 2006 All rights reservedFor the purposes of this document, the terms and definitions given in ISO/IEC 19757-2 and the following apply.NOTE Where a term is defined

48、 in this part of ISO/IEC 19757 and in ISO/IEC 19757-2, the definition given in this part ofISO/IEC 19757 applies.3.1actiona validate, reject, allow, attach, unwrap, cancelNestedActions, or attachPlaceholder element within an NVDL script3.2attribute sectiona non-empty set of attributes having the sam

49、e namespace name3.3attribute slot nodea slot for an attribute section3.4NVDL dispatchersoftware module that determines whether an NVDL script is correct, creates validation candidates from aninstance, and invokes validators for these validation candidates3.5element sectionan element such that a single namespace name applies to itself and all descendant elements3.6element slot nodea slot for an element section3.7full syntaxsyntax of an NVDL script before simplification3.8instanceXML

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

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

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