1、National Standard of Canada CAN/CSA-Z243.21 0-89 (ISO 8879, 9069) Information Processing-Text and Office Systems-Standard Generalized Markup Language ISGML), and SGML Support Facilities-SGML Document Interchange Format ISDIF) ISSN 0317-5669 Prepared by Canadian Standards Association Approved by Stan
2、dards Council of Canada Published in June 1989 by Canadian Standards Association, 178 Rexdale Boulevard, Rexdale (TorontoJ, Ontario, Canada M9W lR3. The Canadian Standards Association, which operates under the name (SA International (CSA), under whose auspices this National Standard has been produce
3、d, was chartered in 1919 and accredited by the Standards Council of Canada to the National Standards system in 1973. It is a not-for-profit, nonstatutory, voluntary membership association engaged in standards development and certification activities. CSA standards reflect a national consensus of pro
4、ducers and users - including manufacturers, consumers, retailers, unions and professional organizations, and governmental agencies. The standards are used widely by industry and commerce and often adopted by municipal, provincial, and federal governments in their regulations, particularly in the fie
5、lds of health, safety, building and construction, and the environment. Individuals, companies, and associations across Canada indicate their support for CSAs standards development by volunteering their time and skills to CSA Committee work and supporting the Associations objectives through sustainin
6、g memberships. The more than 7000 committee volunteers and the 2000 sustaining memberships together form CSAs total membership from which its Directors are chosen. Sustaining memberships represent a major source of income for CSAs standards development activities. The Association offers certificatio
7、n and testing services in support of and as an extension to its standards development activities. To ensure the integrity of its certification process, the Association regularly and continually audits and inspects products that bear the CSA Mark. In addition to its head office and laboratory complex
8、 in Toronto, CSA has regional branch offices in major centres across Canada and inspection and testing agencies in eight countries. Since 1919, the Association has developed the necessary expertise to meet its corporate mission: CSA is an independent service organization whose mission is to provide
9、an open and effective forum for activities facilitating the exchange of goods and services through the use of standards, certification and related services to meet national and international needs. For futher information on CSA services, write to CSA International 1 78 Rexdale Boulevard Toronto, Ont
10、ario, M9W 1 R3 Canada CSA INTERNATIONAL -The Standards Council of Canada is the coordinating body of the National Standards system, a federation of independent, autonomous organizations working towards the further development and improvement of voluntary standardization in the national interest. The
11、 principal objects of the Council are to foster and promote voluntary standardization as a means of advancing the national economy, benefiting the health, safety, and welfare of the public, assisting and protecting the consumer, facilitating domestic and international trade, and furthering internati
12、onal cooperation in the field of standards. A National Standard of Canada is a standard which has been approved by the Standards Council of Canada and one which reflects a reasonable agreement among the views of a number of capable individuals whose collective interests provide to the greatest pract
13、icable extent a balance of representation of producers, users, consumers, and others with relevant interests, as may be appropriate to the subject in hand. It normally is a standard which is capable of making a significant and timely contribution to the national interest. Approval of a standard as a
14、 National Standard of Canada indicates that a standard conforms to the criteria and procedures established by the Standards Council of Canada. Approval does not refer to the technical content of the standard; this remains the continuing responsibility of the accredited standards-development organiza
15、tion. Those who have a need to apply standards are encouraged to use National Standards of Canada whenever practicable. These standards are subject to periodic review; therefore, users are cautioned to obtain the latest edition from the organization preparing the standard. The responsibility for app
16、roving National Standards of Canada rests with the Standards Council of Canada 45 OConnor Street, Suite 1200 Ottawa, Ontario, K1 P 6N7 Canada Les normes nationales du Canada sont publiees en versions franaise et anglaise. Although the intended primary application of this Standard is stated in its Sc
17、ope, it is important to note that it remains the responsibility of the users to judge its suitability for their particular purpose. Standards Update ServiceCAN/CSA-Z243.210-89June 1989Title: Information Processing - Text and Office Systems - Standard Generalized Markup Language (SGML), and SGML Supp
18、ort Facilities - SGML Document Interchange Format (SDIF)Pagination: 172 pages (viii preliminary and 164 text)To register for e-mail notification about any updates to this publicationgo to shop.csa.caclick on CSA Update ServiceThe List ID that you will need to register for updates to this publication
19、 is 2002545.If you require assistance, please e-mail techsupportcsagroup.org or call 416-747-2233.Visit CSA Groups policy on privacy at csagroup.org/legal to find out how we protect your personal information.Technical Editor: Paul V. Bates Managing Editor: Bernard Kelly Canadian Standards Assodation
20、-1989 All rights reserved. No part of this publication may be reproduced in any form, in an electronic retrieval system or otherwise, without the prior permission of the publisher. Contents Contents Technical Committee on Text and Office Systems vi Preface viii ISO 8879 Information Processing-Text a
21、nd Office Systems-Standard Generalized Markup Language (SMGL) o. Introduction 1 1. Scope 4 2. Field of Application 4 3. References 5 4. Definitions 5 S. Notation 20 5.1 Syntactic Tokens 21 5.2 Ordering and Selection Symbols 21 6. Entity Structure 21 6.1 SGML Document 21 6.2 SGML Entities 21 6.2.1 S
22、Separator 22 6.2.2 Entity End 22 6.2.3 Implied SGML Declaration 22 6.3 Non-SGML Data Entity 22 7. Element Structure 22 7.1 Prolog 22 7.2 Document Element 22 7.2.1 Limits 22 7.3 Element 22 7.3.1 Omitted Tag Minimization 22 7.3.2 Data Tag Minimization 23 7.3.3 Quantities 23 7.4 Start-Tag 23 7.4.1 Mini
23、mization 23 7.4.2 Quantities 24 7.5 End-Tag. 24 7.5.1 Minimization 24 7.6 Content 24 7.6.1 Record Boundaries 25 7.7 Document Type Specification 25 7.7.1 General Entity References 25 7.7.2 Parameter Entity References 25 7.8 Generic Identifier (GI) Specification 26 7.8.1 Rank Feature 26 7.9 Attribute
24、Specification List 26 7.9.1 Minimization 26 7.9.2 Quantitiesa2 26 7.9.3 Attribute Value Specification 26 7.9.4 Attribute Value 27 8. Processing Instruction 27 8.1 Quantities 28 9. Common Constructs 28 9.1 Replaceable Character Data 28 9.2 Character Data 28 9.2.1 SGML Character 28 9.2.2 Function Char
25、acter 28 9.3 Name 28 9.3.1 Quantities 28 9.4 Entity References 28 9.4.1 Quantities 28 9.4.2 Limits 28 9.4.3 Obfuscatory Entity References 29 9.4.4 Named Entity Reference 29 9.4.5 Reference End 29 9.4.6 Short Reference 29 9.5 Character Reference 30 9.6 Delimiter Recognition 30 9.6.1 Recognition Modes
26、 30 9.6.2 Contextual Constraints 31 9.6.3 Order of Recognition 32 9.6.4 Delimiters Starting with the Same Character 32 9.6.5 Short References with Blank Sequences 32 9.6.6 Name Characters 32 9.7 Markup Suppression 32 9.8 Capacity 32 10. Markup Declarations: General 34 10.1 Parts of Declarations 34 1
27、0.1.1 Parameter Separator 34 Information Processing-Text and Office Systems-Standard Generalized Markup Language (SGML). and SGML Support Facilities-SGML Document Interchange Format (SOIF, June 1989 III Contents 10.1.2 Parameter Literal 34 10.1.3 Group 34 10.1.4 Declaration Separator 34 10.1.5 Assoc
28、iated Element Type 35 10.1.6 External Identifier 35 10.1.7 Minimum Literal 35 10.2 Formal Public Identifier 35 10.2.1 Owner Identifier 35 10.2.2 Text Identifier 36 10.3 Comment Declaration 37 10.4 Marked Section Declaration 37 10.4.1 Quantities 37 10.4.2 Status Keyword Specification 37 10.5 Entity D
29、eclaration 38 10.5.1 Entity Name 38 10.5.2 Entity Text 38 10.5.3 Data Text 38 10.5.4 Bracketed Text 39 10.5.5 External Entity Specification 39 11. Markup Declarations: Document Type Definition 39 11.1 Document Type Declaration 39 11.2 Element Declaration 40 11.2.1 Element Type 40 11.2.2 Omitted Tag
30、Minimization 40 11.2.3 Declared Content 40 11.2.4 Content Model 40 11.2.5 Exceptions 42 11.3 Attribute Definition List Declaration 42 11.3.1 Quantities 42 11.3.2 Attribute Name 42 11.3.3 Declared Value 43 11.3.4 Default Value 43 11.4 Notation Declaration 43 11.5 Short Reference Mapping Declaration 4
31、4 11.6 Short Reference Use Declaration 44 11.6.1 Use in Document Type Declaration 44 11.6.2 Use in Document “Instance 44 11.6.3 Current Map 44 12. Markup Declarations: Link Process Definition 44 12.1 Link Type Declaration 44 12.1.1 Simple Link Specification 45 12.1.2 Implicit Link Specification 45 1
32、2.1.3 Explicit Link Specification 45 12.1.4 Link Type Declaration Subset 45 12.2 Link Set Declaration 45 12.2.1 Source Element Specification 46 12.2.2 Result Element Specification 46 12.3 Link Set Use Declaration 46 12.3.1 Use in Link Type Declaration 46 12.3.2 Use in Document Instance 46 Iv 12.3.3
33、Current Link Set 46 13. SGML Declaration 47 13.1 Document Character Set 47 13.1.1 Character Set Description 47 13.1.2 Non-SGML Character Identification 48 13.2 Capacity Set 48 13.3 Concrete Syntax Scope 48 13.4 Concrete Syntax 49 13.4.1 Public Concrete Syntax 49 13.4.2 Shunned Character Number Ident
34、ification 49 13.4.3 Syntax-Reference Character Set 50 13.4.4 Function Character Identification 50 13.4.5 Naming Rules 50 13.4.6 Delimiter Set 51 13.4.7 Reserved Name Use 51 13.4.8 Quantity Set 51 13.5 Feature Set 52 13.5.1 Markup Minimization Features 52 13.5.2 Link Type Features 52 13.5.3 Other Fea
35、tures 52 13.6 “Application-Specific Information 53 14. Reference and Core Concrete Syntaxes 53 15. Conformance 53 15.1 Conforming SGML Document 53 15.1.1 Basic SGML Document 53 15.1.2 Minimal SGML Document 53 15.1.3 Variant Conforming SGML Document 53 15.2 Conforming SGML Application 53 15.2.1 Appli
36、cation Conventions 53 15.2.2 Conformance of Documents 53 15.2.3 Conformance of Documentation 53 15.3 Conforming SGML System 53 15.3.1 Conformance of Documentation 54 15.3.2 Conformance to System Declaration 54 15.3.3 Support for Reference Concrete Syntax 54 15.3.4 Support for Reference Capacity Set
37、55 15.3.5 Consistency of Parsing 55 15.3.6 Application Conventions 55 15.4 Validating SGML Parser 56 15.4.1 Error Recognition 56 15.4.2 Identification of SGML Messages 56 15.4.3 Content of SGML Messages 56 15.5 Documentation Requirements 56 15.5.1 Standard Identification 56 15.5.2 Identification of
38、SGML Constructs 56 15.5.3 Terminology 57 15.5.4 Variant Concrete Syntax 57 15.6 System Declaration 57 15.6.1 Concrete Syntaxes Supported 57 CAN/C5A-Z24 3.21o-8 June 1989 Contents 15.6.2 Validation Services 58 Annexes A-Introduction to Generalized Markup 59 B-Basic Concepts 66 C-Additional Concepts 9
39、4 D-Public Text 110 E-Application Examples 136 F-Implementation Considerations 145 G-Conformance Classification and Certification 149 H-Theoretical Basis for the SGML Content Model 152 I-Nonconforming Variations 154 ISO 9069 Information Processing-SGML Support Facilities-SGML Document Interchange Fo
40、rmat (SDIF) 1. Scope 157 2. Field of Application 157 3. References 157 4. Definitions 157 5. Description of the Data Stream 158 5.1 Organization of the Data Stream 158 5.2 Data Stream Character Set 158 5.3 SDIF Name 159 5.4 Document Descriptor 159 5.4.1 Included Entities 159 5.4.2 Document Character
41、 Set 159 5.5 SDIF Identifier 159 5.6 Entity Descriptor 160 6. Abstract Data Stream Format 160 7. Encoding Rules 161 Annex A-Relation to Other Standards 162 Information Processing-Text and Office SystemS-Standard Generalized Markup Language (SGMLJ. and SGML Support Facilities-SGML Document Interchang
42、e Format (SOIFJ June 1989 v Technical Committee Technical Committee on Text and Office Systems. B. Ho Department of Communications Canada, Ottawa, Ontario D. MacKinnon Software Kinetics Limited, Stittsville, Ontario D. Barnard Queens University, Kingston, Ontario P.G. Bowie Bell Canada, Ottawa, Onta
43、rio E. Buchlnski National Library of Canada, Ottawa, Ontario J. Costa Bell-Northern Research, Ottawa, Ontario S.J. Crossman Telecom Canada, Ottawa, Ontario D. Dawson SHL Systemhouse Inc., Ottawa, Ontario R. Dexter Standards Council of Canada, Ottawa, Ontario J.Y. Fortin Department of Communications
44、Canada, Ottawa, Ontario A.S. Kwan Department of Communications Canada, Ottawa, Ontario A. laBonte Ministere des Communications du Quebec, Ste-Foy, Quebec R. Marino Hewlett-Packard (Canada) Limited, Mississauga, Ontario T.G. Moore CNCP Telecommunications, Toronto, Ontario P. Pedersen Philips Electron
45、ics Limited, St. Laurent, Quebec Y. Rublnsky Softquad Inc., Toronto, Ontario K. Schneider Nixdorf Computer Canada Limited, Don Mills, Ontario G.Seeds XIOS Systems Corporation, Ottawa, Ontario vi Chairman Vice-Chairman Associate Associate Associate Associate Associate CAN/CSA-Z24321().89 June 1989 D.
46、A. Sheppard V.S. UMAmaheswaran E.M. Wade J.D. Warner S. Wilmott S. Zeber P. Bates Protocols Standards and Communication Inc., Etobicoke, Ontario IBM Canada Limited, Don Mills, Ontario DCE Communication Consultants Limited, Ottawa, Ontario IBM Canada Limited, Markham, Ontario Software Exoterica, Otta
47、wa, Ontario Protocols Standards and Communication Inc., Ottawa, Ontario Canadian Standards Association, Rexdale, Ontario Information Processing-Text and Office Systems-Standard Generalized Markup language (SGMU. and SGML Support Facilities-SGML Document Interchange Fonnat (SOIFl June 1989 Technical
48、Committee Associate Associate Standards Administrator, Nonvoting vii Preface Preface This is the first edition of CSA Standard CAN/CSA-Z243.210, Information Processing Text and Office Systems-Standard Generalized Markup Language (SGML), and SGML Support Facilities-SGML Document Interchange Format (S
49、O/F). This CSA Standard is an adoption of ISO Standards 8879 and 9069. As a member country of ISOIIEC JTC1, Canada partiCipated actively in this work through the CSA Technical Committee on Text and Office Systems, which, in addition to its role as a National Standards Committee, is also the Canadian Advisory Committee (CAC) on ISOIIEC JTC1/SC18. These Standards were reviewed and adopted by the CSA Technical Committee on Text and Office Systems under the jurisdiction of the Standards Steering Committee on Information Technology, and were formally approved by these Committees.