1、 Information technology Documentprocessing and related communication Conformance testing for StandardGeneralized Markup Language (SGML)systemsTechnologies de linformation Traitement documentaire et communicationconnexe Tests de conformit pour langage normalis de balisagegnralis (SGML)Reference numbe
2、rISO/IEC 13673:2000(E) ISO/IEC 2000National Standard of CanadaCAN/CSA-ISO/IEC 13673:02(ISO/IEC 13673:2000)International Standard ISO/IEC 13673:2000 (first edition, 2000-05-01) has been adopted withoutmodification (IDT) as CSA Standard CAN/CSA-ISO/IEC 13673:02, which has been approved as a NationalSt
3、andard of Canada by the Standards Council of Canada.ISBN 1-55324-975-5 December 2002The Canadian Standards Association (CSA), The Standards Council of Canada is theunder whose auspices this National Standard has been coordinating body of the National Standards system, produced, was chartered in 1919
4、 and accredited by a federation of independent, autonomousthe Standards Council of Canada to the National organizations working towards the furtherStandards system in 1973. It is a not-for-profit, development and improvement of voluntarynonstatutory, voluntary membership association standardization
5、in the national interest.engaged in standards development and certification The principal objects of the Council are to foster activities. and promote voluntary standardization as a means CSA standards reflect a national consensus of of advancing the national economy, benefiting theproducers and use
6、rs including manufacturers, health, safety, and welfare of the public, assisting consumers, retailers, unions and professional and protecting the consumer, facilitating domestic organizations, and governmental agencies. The and international trade, and furthering internationalstandards are used wide
7、ly by industry and commerce cooperation in the field of standards.and often adopted by municipal, provincial, and A National Standard of Canada is a standard whichfederal governments in their regulations, particularly has been approved by the Standards Council ofin the fields of health, safety, buil
8、ding and Canada and one which reflects a reasonableconstruction, and the environment. agreement among the views of a number of capableIndividuals, companies, and associations across individuals whose collective interests provide to theCanada indicate their support for CSAs standards greatest practic
9、able extent a balance ofdevelopment by volunteering their time and skills to representation of producers, users, consumers, andCSA Committee work and supporting the Associations others with relevant interests, as may be appropriateobjectives through sustaining memberships. The to the subject in hand
10、. It normally is a standardmore than 7000 committee volunteers and the 2000 which is capable of making a significant and timelysustaining memberships together form CSAs total contribution to the national interest.membership from which its Directors are chosen. Approval of a standard as a National St
11、andard ofSustaining memberships represent a major source of Canada indicates that a standard conforms to theincome for CSAs standards development activities. criteria and procedures established by the StandardsThe Association offers certification and testing Council of Canada. Approval does not refe
12、r to theservices in support of and as an extension to its technical content of the standard; this remains thestandards development activities. To ensure the continuing responsibility of the accreditedintegrity of its certification process, the Association standards-development organization.regularly
13、 and continually audits and inspects products Those who have a need to apply standards arethat bear the CSA Mark. encouraged to use National Standards of CanadaIn addition to its head office and laboratory complex whenever practicable. These standards are subject in Toronto, CSA has regional branch
14、offices in major to periodic review; therefore, users are cautioned centres across Canada and inspection and testing to obtain the latest edition from the organizationagencies in eight countries. Since 1919, the preparing the standard.Association has developed the necessary expertise to The responsi
15、bility for approving National Standards meet its corporate mission: CSA is an independent of Canada rests with theservice organization whose mission is to provide an Standards Council of Canadaopen and effective forum for activities facilitating the 270 Albert Street, Suite 200exchange of goods and
16、services through the use of Ottawa, Ontario, K1P 6N7standards, certification and related services to meet Canadanational and international needs.For further information on CSA services, write toCanadian Standards Association5060 Spectrum Way, Suite 100Mississauga, Ontario, L4W 5N6CanadaAlthough the
17、intended primary application of this Standard is stated in its Scope, it is importantto note that it remains the responsibility of the users to judge its suitability for their particular purpose.Registered trade-mark of Canadian Standards AssociationCAN/CSA-ISO/IEC 13673:02 Conformance testing for S
18、tandard Generalized Markup Language (SGML) systemsInformation technology Document processing and related communication December 2002 Canadian Standards Association CSA/1CAN/CSA-ISO/IEC 13673:02Information technology Document processing and relatedcommunication Conformancetesting for Standard General
19、izedMarkup Language (SGML) systemsCSA PrefaceStandards development within the Information Technology sector is harmonized with internationalstandards development. Through the CSA Technical Committee on Information Technology (TCIT),Canadians serve as the Canadian Advisory Committee (CAC) on ISO/IEC
20、Joint Technical Committee 1 onInformation Technology (ISO/IEC JTC1) for the Standards Council of Canada (SCC), the ISO memberbody for Canada and sponsor of the Canadian National Committee of the IEC. Also, as a member of theInternational Telecommunication Union (ITU), Canada participates in the Inte
21、rnational Telegraph andTelephone Consultative Committee (ITU-T).This International Standard was reviewed by the CSA TCIT under the jurisdiction of the StrategicSteering Committee on Information Technology and deemed acceptable for use in Canada. (Acommittee membership list is available on request fr
22、om the CSA Project Manager.) From time to time,ISO/IEC may publish addenda, corrigenda, etc. The CSA TCIT will review these documents for approvaland publication. For a listing, refer to the CSA Information Products catalogue or CSA Info Update orcontact a CSA Sales representative. This Standard has
23、 been formally approved, without modification, bythe Technical Committee and has been approved as a National Standard of Canada by the StandardsCouncil of Canada.December 2002 Canadian Standards Association 2002All rights reserved. No part of this publication may be reproduced in any form whatsoever
24、 without the priorpermission of the publisher. ISO/IEC material is reprinted with permission. Where the words “thisInternational Standard” appear in the text, they should be interpreted as “this National Standard ofCanada”. Inquiries regarding this National Standard of Canada should be addressed to
25、Canadian Standards Association 5060 Spectrum Way, Suite 100, Mississauga, Ontario, Canada L4W 5N6 1-800-463-6727 416-747-4044www.csa.caINTERNATIONALSTANDARDISO/IEC13673First edition2000-05-01Information technology Documentprocessing and related communication Conformance testing for StandardGeneraliz
26、ed Markup Language (SGML)systemsTechnologies de linformation Traitement documentaire et communicationconnexe Tests de conformit pour langage normalis de balisagegnralis (SGML)Reference numberISO/IEC 13673:2000(E) ISO/IEC 2000ISO/IEC 13673:2000(E)ii ISO/IEC 2000 All rights reserved ISO/IEC 2000All ri
27、ghts reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronicor mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member bodyin the country of the
28、 requester.ISO copyright officeCase postale 56 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 734 10 79E-mail copyrightiso.chWeb www.iso.chPDF disclaimerThis PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall notbe ed
29、ited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading thisfile, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in thisarea.Adobe is a tra
30、demark 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 parameterswere optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies
31、. In the unlikely eventthat a problem relating to it is found, please inform the Central Secretariat at the address given below. ISO/IEC 2000 All rights reserved iiiContentsPage1 Scope. 12 Normative references 13 Precedence of ISO 8879 . 24 Definitions 25 Use of SGML test suites 36 Test suite docume
32、ntation. 57 Types of tests 78 General requirements for individual tests 89 Test case naming conventions 810 Requirements for SGML names and literals 911 Conventions for testing string length . 912 Source document formatting conventions . 1013 Test categories 1114 The Reference Application for SGML T
33、esting (RAST) 1215 The Reference Application for Capacity Testing (RACT) 1916 Test suite reports. 2017 Testing SDIF data streams 21Figure1 A 240-character processing instruction . 10AnnexesA The ISO 8879 Element Structure Information Set (ESIS) 23B Sample tests and RAST results. 26ISO/IEC 13673:2000
34、(E)ISO/IEC 13673:2000(E)iv ISO/IEC 2000 All rights reservedForewordISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission)form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC partici-pate in
35、 the development of International Standards through technical committees established by the respectiveorganization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fieldsof mutual interest. Other international organizations, governmental and non-g
36、overnmental, in liaison with ISO andIEC, also take part in the work.International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 3.In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.Draft Internati
37、onal Standards adopted by the joint technical committee 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 International
38、 Standard may be the subject ofpatent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.International Standard ISO/IEC 13673 was prepared by ANSI (as ANSI X3.190) and was adopted, under a special“fast-track procedure”, by Joint Technical Committee ISO/IE
39、C JTC 1, Information technology, in parallel with itsapproval by national bodies of ISO and IEC.Annex A forms a normative part of this International Standard. Annex B is for information only. ISO/IEC 2000 All rights reserved vIntroductionISO 8879:1986 and 8879:1986/A1:1988, Information processing Te
40、xt and officesystems Standard Generalized Markup Language (SGML), define when a sys-tem is a conforming SGML system. The determination of whether a system is aconforming SGML system is of value both to potential users of such systems andto their developers. This determination is, however, a complex
41、process. To thisend, efforts are underway to develop test suites to validate conformance. Stan-dardization of development and use of test suites assures consistency of resultsand informs the public of the implications of the tests. Such formalism is providedby this standard, which includes guideline
42、s for the content of individual tests; rigorous conventions for naming test cases and the constructs used withinthem; formatting and comment conventions; conventions for classifying test cases; conventions for documenting test suites; definition of a Reference Application for SGML Testing (RAST) tha
43、t indicateshow an SGML parser interprets a test; definition of a Reference Application for Capacity Testing (RACT) thatreports a parsers capacity calculations; conventions for reporting a systems performance on a test suite.This standard also addresses conformance to the related standard,ISO 9069:19
44、88, Information Processing SGML support facilities SGML Docu-mentInterchangeFormat(SDIF), as SDIF is neededto connect theseveral entitiesof an SGML document into a single object for interchange within OSI.This standard may be used by those who develop SGML test suites, those whobuild SGML systems to
45、 be evaluated by such suites, and those who examine anSGML systems performance on a test suite as part of the process of selecting anSGML tool.ISO/IEC 13673:2000(E) ISO/IEC 2000 All rights reserved 1INTERNATIONAL STANDARD ISO/IEC 13673:2000(E)Information technology Document processing andrelated com
46、munication Conformance testing forStandard Generalized Markup Language (SGML) systems1 ScopeThis standard addresses the construction and useof test suites for verifying conformance of SGMLsystems. Its provisions assist those who build testsuites, those who build SGML systems to be eval-uated by such
47、 suites, and those who examine anSGMLsystemsperformanceon atest suiteaspartof the process of selecting an SGML tool.In particular, this standard includes: criteria for the organization of test suites,including naming conventions, documentationconventions, and specification of applicable con-crete sy
48、ntaxes and features. Among otheradvantages, these conventions facilitate anynon-SGML automatic processing that may beconvenient for the developers or the users of thetests;NOTE An example of such non-SGML processing issorting tests by name. a standard form for describing test resultsthat makes clear
49、 what has been proven or dis-proven by the tests; the specification of a Reference Applicationfor SGML Testing (RAST) that interprets allmarkup to allow machine comparison of testresults for documents conforming to ISO 8879.RAST indicates in a standard way when tags,processing instructions, and data are recognizedby the parser, replacing references and process-ing markup declarations and marked sectionsappropriately.RAST testsinformationlikelytobepassedbyageneral-purposeSGMLparsertoanapplica