1、BS ISO/IEC 19757-8:2008 ICS 35.240.30 NO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAW BRITISH STANDARD Information technology Document Schema Definition Languages (DSDL) Part 8: Document Semantics Renaming Language (DSRL) Incorporating corrigendum December 2011 National forewo
2、rd This British Standard is the UK implementation of ISO/IEC 19757-8:2008 incorporating corrigendum December 2011. The start and finish of text introduced or altered by corrigendum is indicated in the text by tags. Text altered by ISO/IEC corrigendum December 2011 is indicated in the text by . The U
3、K participation in its preparation was entrusted to Technical Committee IST/41, Document description and processing language. A list of organizations represented on this committee can be obtained on request to its secretary. This publication does not purport to include all the necessary provisions o
4、f a contract. Users are responsible for its correct application. Compliance with a British Standard cannot confer immunity from legal obligations. BS ISO/IEC 19757-8:2008 This British Standard was published under the authority of the Standards Policy and Strategy Committee on 31 January 2009 The Bri
5、tish Standards Institution 2012 Amendments/corrigenda issued since publication Date Comments 31 January 2012 Implementation of ISO/IEC corrigendum December 2011 ISBN 978 0 580 75342 8 Reference number ISO/IEC 19757-8:2008(E) ISO/IEC 2008INTERNATIONAL STANDARD ISO/IEC 19757-8 First edition 2008-12-15
6、 Information technology Document Schema Definition Languages (DSDL) Part 8: Document Semantics Renaming Language (DSRL) Technologies de linformation Langages de dfinition de schma de documents (DSDL) Partie 8: Langage pour renommer une smantique de documents (DSRL) PDF disclaimer This PDF file may c
7、ontain 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 respons
8、ibility 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
9、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 found, please inform the Central Secretariat at the address given below. COPYRIGHT PROTECTED DOCUMENT ISO/IEC 200
10、8 All rights reserved. Unless 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 coun
11、try of the requester. ISO copyright 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 BS ISO/IEC 19757-8:2008 ISO/IEC 19757-8:2008 (E) ISO 2011 iii Contents Page Bibliography 20 Foreword. iv Intro
12、duction. v 1 Scope 1 2 Normative references 1 3 Terms and definitions 2 4 The role of the Document Semantics Renaming Language 2 4.1 Namespace. 2 5 DSRL maps. 3 6 Mapping user-defined names to schema-defined names 3 6.1 Reassigning element and attribute names 3 6.2 Mapping attribute values. 5 6.3 De
13、fault attribute values. 6 6.4 Mapping element content 6 6.5 Default content. 6 6.6 Renaming processing instruction targets. 7 6.7 Mapping entity references. 7 7 Declaring entities. 8 8 Conformance 9 Annex A(normative) Validation of declarative document architectures 10 A.1 RELAX NG XML Schema for Va
14、lidating DSRL 10 A.2 RELAX NG Compact Schema for Validating DSRL maps 15 A.3 Schematron Rules for Validating DSRL. 16 Annex B(informative) Using DSRL to Transform Document Instances. 17 BS ISO/IEC 19757-8:2008 ISO/IEC 19757-8:2008 (E) ISO 2011 iv Foreword ISO (the International Organization for Stan
15、dardization) and IEC (the International 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 organiza
16、tion to deal with particular fields 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,
17、 ISO and IEC have established a joint 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 adop
18、ted 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 document may be the subject of
19、 patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC 19757-8 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 f
20、ollowing parts, under the general title 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) Part 7: Character Rep
21、ertoire Description Language (CRDL) Part 8: Document Semantics Renaming Language (DSRL) Part 9: Namespace and datatype declaration in Document Type Definitions (DTDs) BS ISO/IEC 19757-8:2008 ISO/IEC 19757-8:2008 (E) ISO 2011 v Introduction ISO/IEC19757definesasetofDocumentSchemaDefinitionLanguages(D
22、SDL)thatcanbeusedtospecifyoneor morevalidationprocessesperformedagainstExtensibleMarkupLanguage(XML)orStandardGeneralizedMarkup Language(SGML)documents.(XMLisanapplicationprofileofSGML,ISO8879:1986.) Adocumentmodelisanexpressionoftheconstraintstobeplacedonthestructureandcontentofdocumentstobe valida
23、tedwiththemodel.Anumberoftechnologieshavebeendevelopedthroughvariousformalandinformalconsortia sincethedevelopmentofDocumentTypeDefinitions(DTDs)aspartofISO8879,notablybytheWorldWideWeb Consortium(W3C)andtheOrganizationfortheAdvancementofStructuredInformationStandards(OASIS).Anumber ofvalidationtech
24、nologiesarestandardizedinDSDLtocomplementthosealreadyavailableasstandardsorfrom industry. Tovalidatethatastructureddocumentconformstospecifiedconstraintsinstructureandcontentrelievesthepotentially manyapplicationsactingonthedocumentfromhavingtoduplicatethetaskofconfirmingthatsuchrequirements havebee
25、nmet.Historically,suchtasksandexpressionshavebeendevelopedandutilizedinisolation,without considerationforhowthefeaturesandfunctionalityavailableinothertechnologiesmightenhancevalidationobjectives. TheprimaryobjectiveofISO/IEC19757istobringtogetherdifferentvalidation-relatedtasksandexpressionstoform
26、asingleextensibleframeworkthatallowstechnologiestoworkinseriesorinparalleltoproduceasingleorasetof validationresults.TheextensibilityofDSDLaccommodatesvalidationtechnologiesnotyetdesignedorspecified. Inthepast,differentdesignandusecriteriahaveleduserstochoosedifferentvalidationtechnologiesfordiffere
27、nt portionsoftheirinformation.BringingtogetherinformationwithinasingleXMLdocumentsometimespreventsexisting documentmodelsfrombeingusedtovalidatesectionsofdata.Byprovidinganintegratedsuiteofconstraintdescription languagesthatcanbeappliedtodifferentsubsetsofasingleXMLdocument,ISO/IEC19757allowsdiffere
28、ntvalidation technologiestobeintegratedunderawell-definedvalidationpolicy. ISO/IEC19757integratesconstraintdescriptiontechnologiesintoasuitethat providesusercontrolofnames,orderandrepeatabilityofinformationobjects(elements) , allowsuserstoidentifyrestrictionsontheco-concurrenceofelementsand/orelemen
29、tcontents , allowsspecificsubsetsofstructureddocumentstobevalidated , allowsrestrictionstobeplacedonthecontentsofspecificelements,includingrestrictionsbasedonthecontent ofotherelementsinthesamedocument , allowsthecharactersetthatcanbeusedwithinspecificelementstobemanaged,basedontheapplicationof theI
30、SO/IEC10646UniversalMultiple-OctetCodedCharacterSet(UCS ), allowsdefaultvaluestobeassignedtoelementcontentandattributevalues , allowsSGMLtobeusedtodeclaredocumentstructureconstraintsthatextendDTDstoincludefunctionssuch asnamespace-controlledvalidationanddatatypes. BS ISO/IEC 19757-8:2008 ISO/IEC 197
31、57-8:2008 (E) ISO 2011 BS ISO/IEC 19757-8:2008 ISO/IEC 19757-8:2008 (E) ISO 2011 INTERNATIONAL STANDARD1 Information technology Document Schema Definition Languages (DSDL) Part 8: Document Semantics Renaming Language (DSRL) 1 Scope 2 Normative references The following referenced documents are indisp
32、ensable 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 any amendments) applies. IRI, IETF RFC 3987, Internationalized Resource Identifiers (IRIs), Internet Standards Track Sp
33、ecification, January 2005, http:/www.ietf.org/rfc/rfc3987.txt ISO/IEC 19757-2:2003, Information technology Document Schema Definition Language (DSDL) Part 2: Regular-grammar-based validation RELAX NG ISO/IEC 19757-2:2003/Amd.1:2006, Information technology Document Schema Definition Language (DSDL) P
34、art 2: Regular-grammar-based validation RELAX NG Amendment 1: Compact Syntax ISO/IEC 19757-3:2006, Information technology Document Schema Definition Languages (DSDL) Part 3: Rule-based validation Schematron ISO 8879:1986, Information processing Text and office systems Standard Generalized Markup Lan
35、guage (SGML) XML, Extensible Markup Language (XML) 1.0 (Fourth Edition), W3C Recommendation, 16 August 2006, http:/www.w3.org/TR/2006/REC-xml-20060816 XML-Infoset, XML Information Set (Second Edition), W3C Recommendation, 4 February 2004, http:/www.w3.org/TR/2004/REC-xml-infoset-20040204 XML-Names,
36、Namespaces in XML 1.0 (Second Edition), W3C Recommendation, 16 August 2006, http:/www.w3.org/TR/2006/REC-xml-names-20060816 XML Schema, XML Schema Part 1: Structures Second Edition, W3C Recommendation, 28 October 2004, http:/www.w3.org/TR/2004/REC-xmlschema-1-20041028/ XSD, XML Schema Part 2: Dataty
37、pes Second Edition, W3C Recommendation, 28 October 2004, http:/www.w3.org/TR/2004/REC-xmlschema-2-20041028/ XSLT , XSL Transformations (XSLT) Version 2.0, W3C Recommendation, 23 January 2007, http:/www.w3.org/TR/2007/REC-xslt20-20070123/ This part of ISO/IEC 19757 specifies a mechanism that allows u
38、sers to assign locally meaningful names to XML elements, attributes, entities and processing instructions, without having to completely rewrite the DTD or schema against which they are to be validated. In addition, this part of ISO/IEC 19757 provides an XML-based format for declaring the replacement
39、 text for entity references and provides a mechanism that allows users to define default values for both element content and attribute values. NOTE Each of the following documents that is not an International Standard has a unique identifier that is used to citethe document in the text. The unique i
40、dentifier consists of the part of the reference up to the first comma. ISO/IEC 19757-8:2008 (E) ISO 2011 BS ISO/IEC 19757-8:2008 2 3 Terms and definitions Forthepurposesofthisdo cument,thetermsanddefinitions given inISO/IEC19757-2 ,ISO/IEC19757-3 andthefollowingapply . 3.1 DSRL map setofrulesthat is
41、usedtomapadocumentinstancetoadocumentmodeldefinedbyoneormoreschemas 3.2 entity ISO8879:1986generalentitythatcanbereferencedusinganXMLentityreference 3.3 entity node nodeinaDocumentObjectModelthatidentifiesanentityand,whereappropriate,containsdetailsofitsreplacement text 3.4 IRI InternationalizedReso
42、urceIdentifiersasdefinedinIETFRFC3987 3.5 SGML StandardGeneralizedMarkupLanguagedefinedinISO8879:1986 4 The role of the Document Semantics Renaming Language TheDocumentSemanticsRenamingLanguage(DSRL)providesamechanismfordeclaringhowanapplicationcan maplocallymeaningfulelement,attribute,entityandproc
43、essinginstructionnamestothenamesassignedtoequivalent XMLelements,attributes,entitiesandprocessinginstructionswithinadocumentmodelwithouthavingtocompletely rewritetheDTDorschematowhichtheyarerequiredtoconform. Inaddition,DSRLprovidesanXML-basedformatfordeclaringthereplacementtextforentityreferencesan
44、dprovides amechanismthatallowsuserstodefinedefaultvaluesforbothelementcontentandattributevalues.Toallowfor schemasthatdonotsupporttheuseofattributes,DSRLalsoallowsuserstoconvertattributevaluestoelement content. 4.1 Namespace ElementsandattributesthatconformtothisPartofDSDLshallhaveanXMLnamespacedefi
45、nition(asdefinedin XML-Names)whoseassociatedresourceidentifier(IRI)is:http:/purl.oclc.org/dsdl/dsrl InthisParttheprefix dsrl:isusedtoidentifypointsatwhichthisIRIdefinesthenamespace. Othernamespacesrequiredtogroupelementsandattributesintoprocessableunitscanbeassignedasrequiredfor validation. Text del
46、eted BS ISO/IEC 19757-8:2008 ISO/IEC 19757-8:2008 (E) ISO 2011 3.Twooptionalattributescanbeassociatedwiththiselement: targetNamespace maybeusedtorecordtheIRIassignedasthetargetnamespaceforthevalidatingschema ; targetSchemaLocation maybeusedtorecordtheIRIassignedtotheschematobeusedtovalidatethe mappeddocumentinstances. ThetargetNamespaceattributeisrequiredwhentheschemaidentifiedbythe targetSchemaLocationat
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1