1、raising standards worldwide NO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAW BSI Standards Publication Information technology Learning, education, and training Content packaging Part 2: XML binding BS ISO/IEC 12785-2:2011National foreword This British Standard is the UK impleme
2、ntation of ISO/IEC 12785-2:2011. The UK participation in its preparation was entrusted to Technical Committee IST/43, Information technology for learning, education and training. A list of organizations represented on this committee can be obtained on request to its secretary. This publication does
3、not purport to include all the necessary provisions of a contract. Users are responsible for its correct application. The British Standards Institution 2012 Published by BSI Standards Limited 2012 ISBN 978 0 580 69866 8 ICS 35.240.99 Compliance with a British Standard cannot confer immunity from leg
4、al obligations. This British Standard was published under the authority of the Standards Policy and Strategy Committee on 31 July 2012. Amendments issued since publication Amd. No. Date Text affected BRITISH STANDARD BS ISO/IEC 12785-2:2011Reference number ISO/IEC 12785-2:2011(E) ISO/IEC 2011 INTERN
5、ATIONAL STANDARD ISO/IEC 12785-2 First edition 2011-11-15 Information technology Learning, education, and training Content packaging Part 2: XML binding Technologies de linformation Apprentissage, ducation et formation Paquetage du contenu Partie 2: Liaison XML BS ISO/IEC 12785-2:2011ISO/IEC 12785-2
6、:2011(E) COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2011 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
7、the address below or ISOs member body in the country 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 ISO/IEC 2011 All rights reserved BS ISO/IEC 12785-2:2011ISO/I
8、EC 12785-2:2011(E) ISO/IEC 2011 All rights reserved iii Contents Page Foreword iv Introduction . v 1 Scope 1 2 Normative references 1 3 Terms and definitions . 1 4 Abbreviated terms . 3 5 XML schema documentation 4 5.1 Core content packaging binding description . 4 5.1.1 Schema document properties 4
9、 5.1.2 Global declarations . 5 5.1.2.1 Element: manifest 5 5.1.3 Global definitions 6 5.1.3.1 Complex Type: Dependency.Type . 6 5.1.3.2 Complex Type: File.Type 7 5.1.3.3 Complex Type: Item.Type . 8 5.1.3.4 Complex Type: Manifest.Type 10 5.1.3.5 Complex Type: ManifestMetadata.Type 11 5.1.3.6 Complex
10、Type: Metadata.Type . 12 5.1.3.7 Complex Type: Organization.Type . 13 5.1.3.8 Complex Type: Organizations.Type . 15 5.1.3.9 Complex Type: Resource.Type 16 5.1.3.10 Complex Type: Resources.Type 17 5.1.3.11 Model Group: grpStrict.any 18 5.2 Content packaging extension binding description 19 5.2.1 Sche
11、ma document properties 19 5.2.2 Global declarations . 20 5.2.2.1 Element: ipointer 20 5.2.2.2 Element: lingualTitle 21 5.2.2.3 Element: variant . 21 5.2.3 Global definitions 22 5.2.3.1 Complex Type: IPointer.Type . 22 5.2.3.2 Complex Type: LingualTitle.Type 24 5.2.3.3 Complex Type: Metadata.Type . 2
12、4 5.2.3.4 Complex Type: Variant.Type 25 5.2.3.5 Model Group: grpStrict.any 26 6 Using schematron . 27 Annex A (informative) Document Provenance . 28 Annex B (informative) Listing of the XSDs . 29 Bibliography 30 BS ISO/IEC 12785-2:2011ISO/IEC 12785-2:2011(E) iv ISO/IEC 2011 All rights reserved Forew
13、ord ISO (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 participate in the development of International Standards through technical c
14、ommittees established by the respective organization 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 t
15、he work. In the field of information technology, 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 Internation
16、al Standards. Draft International 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
17、 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. ISO/IEC 12785-2 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 36, Information technology for lea
18、rning, education and training. ISO/IEC 12785 consists of the following parts, under the general title Information technology Learning, education, and training Content packaging: Part 1: Information model Part 2: XML binding Part 3: Best practice and implementation guide BS ISO/IEC 12785-2:2011ISO/IE
19、C 12785-2:2011(E) ISO/IEC 2011 All rights reserved v Introduction This part of ISO/IEC 12785 will be used as the basis for the production of the following documents: ISO/IEC 12785-3 (Best practice and implementation guide); Content Packaging XML XSD. 1)This part of ISO/IEC 12785 details how the ISO/
20、IEC 12785-1 information model should be represented using XML schema. The content packaging binding is contained in two XML schemas and two vocabulary files. The vocabulary files are instances of the IMS Vocabulary Definition Exchange specification. ISO/IEC 12785-3 provides non-normative guidance on
21、 how to use the binding and information model. For a conceptual overview of ISO/IEC 12785, see ISO/IEC 12785-1. For a discussion of potential applications, see ISO/IEC 12785-3. Conformance to ISO/IEC 12785 is addressed within ISO/IEC 12785-1. 1) This XML schema definition can be accessed from: http:
22、/www.imsglobal.org/content/packaging/index.html. BS ISO/IEC 12785-2:2011INTERNATIONAL STANDARD ISO/IEC 12785-2:2011(E) ISO/IEC 2011 All rights reserved 1 Information technology Learning, education, and training Content packaging Part 2: XML binding 1 Scope This part of ISO/IEC 12785 specifies how to
23、 represent the ISO/IEC 12785-1 information model in XML, and details each element binding of the content packaging XML schema. 2 Normative references The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For u
24、ndated references, the latest edition of the referenced document (including any amendments) applies. ISO/IEC 12785-1:2009, Information technology Learning, education, and training Content packaging Part 1: Information model 3 Terms and definitions For the purposes of this document, the following ter
25、ms and definitions apply. 3.1 binding XML data binding means of representing the information in an XML document NOTE See XML data binding of Wikipedia: http:/en.wikipedia.org/wiki/XML_data_binding (retrieved November 18, 2009). 3.2 control file single computer file that governs the binding of the Co
26、ntent Packaging Information Model to make it suitable for machine processing NOTE A software component can refer to a control file when assessing the validity of a bound instance of the information model or to guide the creation of a bound instance of the information model. EXAMPLE A file containing
27、 an XML schema can be used as a control file for an XML binding of a manifest. BS ISO/IEC 12785-2:2011ISO/IEC 12785-2:2011(E) 2 ISO/IEC 2011 All rights reserved 3.3 content individual file or multiple files usable in learning, education and training NOTE 1 A logical unit of usable (and reusable) inf
28、ormation can be described by a logical package. NOTE 2 logical package can contain one or more units of content. 3.4 logical package representation of one or more units of usable (and reusable) content NOTE A logical package encompasses the full set of components described by the manifest and its ch
29、ild manifests, including the local components and the remote components included by reference. ISO/IEC 12785-1:2009 3.5 namespace XML namespace identified by a URI reference NOTE Namespace in Content Packaging follows W3C recommendation Namespaces in XML 1.0 (Second Edition). ISO/IEC 12785-1:2009 3.
30、6 manifest description of files and any logical relationships between them, contained or referenced in a content package 3.7 metadata content packaging descriptive information about logical packages, logical organizations, content and files NOTE 1 Metadata can be assigned to any of the core structur
31、es within the logical package, including the manifest. NOTE 2 Any binding of a metadata object is permitted. Each object of metadata can be local or remote. ISO/IEC 12785-1:2009 3.8 organization logical relationships, such as a hierarchical tree, among unit of content NOTE More than one logical orga
32、nization can be described in a manifest. 3.9 package unit of usable (and reusable) content NOTE 1 This can be part of a learning course that has instructional relevance outside of a content aggregation and can be delivered independently, as an entire learning course or as a collection of learning co
33、urses. NOTE 2 A package is able to stand-alone; that is, it contains all the information needed to use the contents for learning, education, and training when it has been unpacked. 3.10 resource content packaging one URL entry point and zero or more references to files that are required before the c
34、ontent is launched NOTE The files described by a resource can be local or remote. BS ISO/IEC 12785-2:2011ISO/IEC 12785-2:2011(E) ISO/IEC 2011 All rights reserved 3 3.11 schema XML Schema description of a class of XML documents, expressed in terms of constraints on the structure and content of those
35、documents NOTE 1 For more information see http:/www.w3c.org/XML/Schema. NOTE 2 XML Schema in Content Packaging follows W3C recommendation XML Schema. NOTE 3 The definition refers to the concept of a schema in an XML context, as well as a specific language for creating such schemas: the W3C XML Schem
36、a. The “IMS Content Packaging XML XSD“ is an application of the W3C XML Schema language. 3.12 unit of content file or grouping of files which can be represented within a manifest 3.13 XML validation process whereby documents written in XML (eXtensible Markup Language) are verified against the define
37、d structure NOTE Strict validation in XML means that it must follow the rules dictated by an XML schema. 4 Abbreviated terms CPIM Content Packaging Information Model I-BAT IMS Binding Auto-generation Tool-kit LET Learning, Education, and Training MDA Model Driven Architecture PIM Protocol Independen
38、t Model PSM Platform Specific Model UML Unified Modeling Language VDEX Vocabulary Definition Exchange W3C World Wide Web Consortium XMI XML Metadata Interchange XML eXtensible Mark-up Language (W3C XML) XSD XML Schema Definition XSL Extensible Stylesheet Language XSLT XSL Transformations BS ISO/IEC
39、12785-2:2011ISO/IEC 12785-2:2011(E) 4 ISO/IEC 2011 All rights reserved 5 XML schema documentation 5.1 Core content packaging binding description 5.1.1 Schema document properties The following subclauses outline the characteristics of each element of the content packaging XML schema binding for core
40、2)elements in tabular form. The same information is also presented as an XSD in Annex B.1. In accordance with the IMS Global Learning Consortium (GLC) Namespace Policy IMS-NAMESPACE specified in IMS Content Packaging XML Binding, the “name” of an element is appended to a IMS GLC namespace URI to con
41、struct a Uniform Resource Identifier as a globally unique identifier for that element. The use of element names and URIs in the context of different implementation technologies is explained in ISO/IEC 12785-2. To describe XML instance representation of each element declared namespaces are as follows
42、: Prefix Namespaces Default namespace http:/www.imsglobal.org/xsd/imscp_v1p1 xml http:/www.w3.org/XML/1998/namespace xs http:/www.w3.org/2001/XMLSchema xsi http:/www.w3.org/2001/XMLSchema-instance Schema component representation: . The following subclauses was created using the schema documentation
43、tool provided as part of the Oxygen product. To describe logical diagram used notations are as follows: : xs:attribute : xs:sequence : xs:anyAttribute : xs:any namespace 2) The core refers to all those elements that were used in the IMS Content Packaging specification versions prior to version 1.2 w
44、hich is source of ISO/IEC 12785. BS ISO/IEC 12785-2:2011ISO/IEC 12785-2:2011(E) ISO/IEC 2011 All rights reserved 5 : xs:group 0 . . 1 : property for zero to one 0 . . : property for zero to unbounded : xs:complexType 5.1.2 Global declarations 5.1.2.1 Element: manifest Name manifest Type Manifest.Typ
45、e Nillable no Abstract no Logical diagram of manifest: BS ISO/IEC 12785-2:2011ISO/IEC 12785-2:2011(E) 6 ISO/IEC 2011 All rights reserved XML instance representation: ManifestMetadata.Type 01 Organizations.Type 1 Resources.Type 1 Manifest.Type 0* Allow any elements from a namespace other than this sc
46、hemas namespace (strict validation). 0* Diagram: Schema component representation: 5.1.3 Global definitions 5.1.3.1 Complex Type: Dependency.Type Super-types: None Sub-types: None Dependency.Type Name Used by (from the same schema document) Complex Type Resource.Type Abstract no BS ISO/IEC 12785-2:20
47、11ISO/IEC 12785-2:2011(E) ISO/IEC 2011 All rights reserved 7 A dependency element provides a way to associate another collection of file references within the scope of the dependency elements parent resource element. Shared file references can be declared once and associated many times through a Dep
48、endency element. This element represents a binding of the kinds of child objects defined for Dependency. Extension 3)(see subclause 6.6.4 of ISO/IEC 12785-1:2009). Documentation XML instance representation: Allow any elements from a namespace other than this schemas namespace (strict validation). 0*
49、 Diagram: Schema component representation: 5.1.3.2 Complex Type: File.Type Super-types: None Sub-types: None File.Type Name Used by (from the same schema document) Complex Type Resource.Type no Abstract 3) Symbol means children elements. BS ISO/IEC 12785-2:2011ISO/IEC 12785-2:2011(E) 8 ISO/IEC 2011 All rights reserved A file element declares a reference to a file. The reference may be relative to the Package containing