OCF201draft.docx
《OCF201draft.docx》由会员分享,可在线阅读,更多相关《OCF201draft.docx(43页珍藏版)》请在冰点文库上搜索。
OCF201draft
OpenContainerFormat(OCF)2.0.1v1.0
WORKINGDRAFTSPECIFICATIONMay9,2010
Thisversion
http:
//www.idpf.org/doc_library/epub/OCF_2.0.1_draft.doc
Latestversion
http:
//www.idpf.org/doc_library/epub/OCF_2.0_latest.doc
Previousversion
http:
//www.idpf.org/ocf/ocf1.0/download/ocf10.htm
Diffstopreviousversion
http:
//www.idpf.org/doc_library/epub/OCF_2.0.1_diffs_to_2.0.doc
Copyright©2010byInternationalDigitalPublishingForum™.
Allrightsreserved.ThisworkisprotectedunderTitle17oftheUnitedStatesCode.ReproductionanddisseminationofthisworkwithchangesisprohibitedexceptwiththewrittenpermissionoftheInternationalDigitalPublishingForum.
TABLEOFCONTENTS
TABLEOFCONTENTSii
1Overview1
1.1PurposeandScope1
1.2Definitions1
1.3RelationshiptoOtherSpecifications3
1.4Conformance4
1.4.1ConformingContainers4
1.4.2ConformingReadingSystems4
1.5Accessibility5
1.6FutureDirections5
2OCFOverview6
2.1OCF:
AGeneralContainerTechnology6
2.2“AbstractContainer”vs.“PhysicalContainer”6
2.3Examples6
2.3.1ExampleofasimplePublication,AbstractContainer,andZIPContainer6
2.3.2Single-publicationcontainers,butwithalternaterenditions8
3OCFContainerContents9
3.1Fileanddirectorystructure9
3.2RelativeIRIsforreferencingothercomponents9
3.3FileNames10
3.4Containermediatypeidentification11
3.5META-INF11
3.5.1Container–META-INF/container.xml(Required)11
3.5.2Manifest–META-INF/manifest.xml(Optional)13
3.5.3Metadata–META-INF/metadata.xml(Optional)14
3.5.4DigitalSignatures–META-INF/signatures.xml(Optional)14
3.5.5Encryption–META-INF/encryption.xml(Optional)15
3.5.6RightsManagement–META-INF/rights.xml(Optional)17
4ZIPContainer17
APPENDIXA:
RELAXNGOCFSchema19
APPENDIXB:
Example20
APPENDIXC:
CONTRIBUTORS24
Overview
Thisspecification,theOpenContainerFormat(OCF),isonethirdofatriumvirateofmodularspecificationsthatmakeuptheEPUBpublicationformat.EPUBenablesthecreationandtransportofreflowabledigitalbooksandothertypesofcontentassingle-filedigitalpublicationsthatareinteroperablebetweendisparateEPUB-compliantreadingdevicesandapplications.EPUBencompassesacontentmarkupstandard(OpenPublicationStructure–OPS),apackagingstandard(OpenPackagingFormat–OPF),andthisspecification,acontainerstandard.
PurposeandScope
ThisspecificationdefinestheOpenContainerFormat(OCF).OCFisageneral-purposecontainertechnology.Thisspecificationdescribesthegeneral-purposecontainertechnologyinthecontextofencapsulatingEPUBpublicationsandOPTIONALalternaterenditionsthereof.Itishoweveranticipatedthatthegeneral-purposecontainertechnologydescribedhereinmayultimatelybeusedinotherbundlingapplications.
Asageneralcontainerformat,OCFcollectsarelatedsetoffilesintoasingle-filecontainer.OCFcanbeusedtocollectfilesinvariousdocumentformatsandforclassesofapplications.Thesingle-filecontainerenableseasytransportof,managementof,andrandomaccessto,thecollection.
OCFdefinestherulesforhowtorepresentanabstractcollectionoffiles(the“abstractcontainer”)intophysicalrepresentationwithinaZIParchive(the“physicalcontainer”).TherulesforZIPcontainersbuilduponandarebackwardcompatiblewiththeZIPtechnologiesusedbyOpenDocumentFormat(ODF)1.0.
OCFistheREQUIREDsingle-filecontainertechnologyforEPUBpublications.OCFMAYplayaroleinthefollowingworkflows:
Duringthepreparationstepsinproducinganelectronicpublication,OCFisusedasthesingle-fileformatwhenexchangingin-progresspublicationsbetweendifferentindividualsand/ordifferentorganizations.
Whenprovidinganelectronicpublicationfrompublisherorconversionhouse(ContentProvider)tothedistributionorsaleschannel,OCFistheRECOMMENDEDsingle-fileformattobeusedasthetransportformat.
WhendeliveringthefinalpublicationtoanEPUBReadingSystemorend-user,OCFistheREQUIREDformatforthesingle-filecontainerthatholdsalloftheassetsthatmakeupthepublication.
Definitions
ASCII
AmericanStandardCodeforInformationInterchange–a7-bitcharacterencodingbasedontheEnglishalphabet(ANSIX3.4-1986).Whenusedinthisdocument,ASCIIreferstotheprintablegraphiccharactersintherange33(decimal)through126(decimal)andthenonprintablespacecharacter32(decimal).
ContentProvider
Apublisher,author,individual,orotherinformationsourcethatprovidesapublicationtodistributionorsaleschannelsordirectlytooneormoreEPUBReadingSystemsusingOCFasdescribedinthisspecification.
EPUB
ThepublicationformatasdefinedbytheOCF2.0.1,OPF2.0.1andOPF2.0.1specifications.
EPUBPublication
AcollectionofOPSDocuments,anOPFPackagefile,andotherfiles,typicallyinavarietyofmediatypes,includingstructuredtextandgraphics,packagedinanOCFcontainerthatconstituteacohesiveunitforpublication,asdefinedbytheEPUBstandards.
EPUBReadingSystem(orReadingSystem)
Acombinationofhardwareand/orsoftwarethatacceptsEPUBPublicationsandmakesthemavailabletoconsumersofthecontent.GreatvarietyispossibleinthearchitectureofReadingSystems.AReadingSystemMAYbeimplementedentirelyononedevice,oritMAYbesplitamongseveralcomputers.Inparticular,areadingdevicethatisacomponentofaReadingSystemneednotdirectlyacceptOCF-PackagedEPUBPublications,butallReadingSystemsMUSTdoso.ReadingSystemsMAYincludeadditionalprocessingfunctions,suchascompression,indexing,encryption,rightsmanagement,anddistribution.
IRI
InternationalizedResourceIdentifier(http:
//www.ietf.org/rfc/rfc3987.txt).
OCF
TheOpenContainerFormatdefinedbythisspecification.
OCFContainer
Acontainerfilethatiscompliantwiththeformatdefinedinthisspecification.
ODF
OpenDocumentFormat(http:
//www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf).
OPF
OpenPackagingFormat(http:
//www.idpf.org/doc_library/epub/OPF_2.0.1_draft.htm).
OPFPackage
AnXMLdocumentthatdescribestheOPScontentsofanEPUBPublicationprovidingmetadata,manifest,reading-orderandnavigationinformationforthepublication.
OPS
OpenPublicationStructure(http:
//www.idpf.org/doc_library/epub/OPS_2.0.1_draft.htm).
OPSDocument
AnXMLdocumentthatconformstotheOPS2.0.1specification–generallycontainingthetextualcontentofanEPUBPublication.
MIME
MultipurposeInternetMailExtensions(http:
//www.isi.edu/in-notes/rfc2045.txt).“MIMEmediatypes”provideastandardmethodologyforspecifyingthecontenttypeofobjects.
RFC
Literally“RequestForComments”,butmoregenerallyadocumentpublishedbytheInternetEngineeringTaskForce(IETF).Seehttp:
//www.ietf.org/rfc.html.
ReadingSystem
SeeEPUBReadingSystem.
RelaxNG
AschemalanguageforXML(http:
//www.relaxng.org/).
Rootfile
Thetop-levelfileofarenditionofapublication;eitherthe“root”fromwhichallothercomponentscanbefoundorthelonefileencapsulatingtherendition.TheEPUBrootfileistheOPFPackagefile.APDFfilecontainingthePDFrenditioncouldalsobearootfile.
XML
ExtensibleMarkupLanguage(http:
//www.w3.org/TR/2006/REC-xml-20060816/).
ZIP
Adefactoindustrystandardbundlingandcompressionformat(
RelationshiptoOtherSpecifications
Thisspecificationcombinessubsetsandapplicationsofotherspecifications.Together,thesefacilitatetheconstruction,organization,presentation,andunambiguousinterchangeofelectronicdocuments:
1.TheXML1.0ExtensibleMarkupLanguagespecification(FourthEdition)(http:
//www.w3.org/TR/2006/REC-xml-20060816/);and
2.TheOPF2.0.1OpenPackagingFormatspecification(http:
//www.idpf.org//doc_library/epub/OPF_2.0.1_draft.htm);and
3.TheOPS2.0.1OpenPublicationStructurespecification(http:
//www.idpf.org/doc_library/epub/OPS_2.0.1_draft.htm);and
4.TheXML1.0namespacespecification(SecondEdition)(http:
//www.w3.org/TR/2006/REC-xml-names-20060816/);and
5.TheUnicodeStandard,Version4.0.Reading,Mass.:
Addison-Wesley,2003,asupdatedfromtimetotimebythepublicationofnewversions.(Seehttp:
//www.unicode.org/unicode/standard/versionsforthelatestversionandadditionalinformationonversionsofthestandardandoftheUnicodeCharacterDatabase).;and
6.ParticularMIMEmediatypes(http:
//www.ietf.org/rfc/rfc4288.txtandhttp:
//www.iana.org/assignments/media-types/index.html);and
7.OpenDocumentFormatforOfficeApplications(OpenDocument)v1.0(http:
//www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf);and
8.ZIPformat(and
9.XML-SignatureSyntaxandProcessing(http:
//www.w3.org/TR/2002/REC-xmldsig-core-20020212);and
10.XMLEncryptionSyntaxandProcessing(http:
//www.w3.org/TR/2002/REC-xmlenc-core-20021210).
11.WebContentAccessibilityGuidelines1.0(http:
//www.w3.org/TR/WCAG10/).
EPUBReadingSystemsMAYsupportXML1.1,butthisfeatureisdeprecatedinversion2.0.1(infavorofXML1.0).SupportforXML1.1willberemovedinthenextversionofthespecification.
Conformance
Thekeywords"MUST","MUSTNOT","REQUIRED","SHALL","SHALLNOT","SHOULD","RECOMMENDED","MAY",and"OPTIONAL"inthisdocumentMUSTbeinterpretedasdescribedin(http:
//www.ietf.org/rfc/rfc2119.txt).
ThissectiondefinesconformancerequirementsforOCF.
ConformingContainers
Theterm“ConformingOCFAbstractContainer”indicatesanOCFAbstractContainer(SeeSection2.2)thatconformstoalloftherelevantconformancecr