DITADarwinInformationTypingArchitecture报告的主要内容DITA背景概述DITA设计原则DITA的主要元素主题、映射与样式DITA与DocBook对比分析DITA工具和使用DITA编译过程演示2DITA含义DITA(达尔文信息分类体系结构,DarwinInformationTypingArchitecture)是一种面向主题的文档类型定义(DocumentTypeDefinitions,DTD)系统,用于定义编写和交付内容信息的规则。DITA通过XML架构来描述、管理和发布内容信息,并用于内容信息的编写、生成和交付。DITA目前由结构化信息标准组织OASIS维护,DITA通过将文档组织为可重用的模块(Topics主题)并将模块进行组织来表示信息内容,DITA提供了主题的元数据注释,用户可以便捷的搜索、过滤和处理内容。Darwin:DITAutilizesprinciplesofinheritanceforspecializationInformationTyping:DITAwasoriginallydesignedfortechnicalinformationbasedonaninformationarchitectureofConcept,TaskandReferenceArchitecture:DITAisamodelforextensionbothofdesignandofprocesses3DITA是什么不是什么DITAisanarchitectureforcreatingtopic-oriented,information-typedcontentthatcanbereusedandsingle-sourcedinavarietyofwaysItisalsoanarchitectureforcreatingnewtopictypesanddescribingnewinformationdomainsbasedonexistingtypesanddomainsDITAisnotjustanothertoolbutaninternationalstandardtosupportstructuredauthoringandreuseinanytechnicaldomain42010-09ChinaNationalInstituteofStandardizationDITA核心设计原则TopicorientationDiscreteunitsofinformationcoveringaspecificsubjectwithaspecificintentTopicgranularitySelf-containedtopicscombinewithothertopicsintoinformationsetsStrongtyping强类型DTDsandschemasguaranteethatDITAtypesfollowidenticalinformationstructuresSpecializationArchitectureforextendingbasictypestonewtypesadaptedforaparticularusewithinaninformationsetCommonbaseclass5Top-level"generic"basetypeprovides“fallback”foralltypesDITA的Topic主题DITA是基于主题的,因为主题是允许以不同单元交付可重用上下文而不影响作者效率的最理想尺寸。如果选择小一些的单元,作者需要核对所有上下文的单元,以确保信息流正确。如果选择大一些的单元,信息不容易重新合并到不同交付上下文所需的结构。从Topic的粒度划分来看,Topic要大到能自我容纳,同时要小到特殊上下文需要的以任何高级结构的有效重用。
是单一非嵌套主体和任何数量的嵌套主题的容器。提供自我描述,与创作内容的标题一致。是段落级内容和任何数量的非嵌套部分的容器。主题可以增加一个前言,其中包括简短描述和其他可选的元数据。6DITA的Topic主题(Cont.)Topic是按单一题目范围组织的一段信息。从结构上看,它是一个后面跟随着文本和图象的主题,可选的按节组织方式。主题有许多不同类型,最通用的是概念、任务和引用。TopicAunitofinformationwhichismeaningfulwhenitstandsalone.ReferenceProvidesquickaccesstofacts.7ConceptProvidesbackgroundinformationthatusersneedtoknow.TaskProvidesproceduraldetailssuchasstep-by-stepinstructions.DITA主题(TOPIC)示例Identifier,title,InstallingaharddriveYouopentheboxandinsertthedrive.harddrivediskdriveUnscrewthecover.Thedrivebayisexposed.Insertthedriveintothedrivebay.Ifyoufeelresistance,tryanotherangle.andshortdescPropertiesofthet...