• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Learning DITA

Free DITA training

Free DITA training

  • Log in
  • Register
  • Newsletter
  • Profile
  • Privacy
  • Home
  • About
  • Courses
  • News
  • Resources
  • Support the site
  • Contact
  • Recordings

Lesson 5: 表格

Posted on 02.09.17

Private: Testing Lesson 5: 表格
学习目标
  • 区分简单表和CALS表。
  • 描述简单表中的元素。
  • 描述CALS表中的元素。
  • DITA表的最佳实践

在结构和样式上,表格不是固定的。但是,表格又往往能更好的承载和传达内容。

DITA包含两种类型的表:

简单表格
<simpletable>元素支持基础表格的呈现形式,不怎么能定制
表格
<table>元素支持复杂的表格类型,可以跨行跨列,能根据属性的设定精确地呈现出来

大多数标记语言使用CALS表模型,这是根据美国国防部首创的一部分规则运用而来的。HTML表也使用CALS模型,因此如果你熟悉HTML表的标记,则会识别DITA表与之类似的地方。

DITA表始终按行进行描述。

简单表格

对于在行和列里面就能基本表达出的内容,采用简单表格来呈现是理想的。可以使用标题行,但不能使用表格标题,不能跨列或行,也不能定义每列的宽度。

表格

<table>元素适合更为复杂的表格内容。可以定义表格标题,可以跨列或行,可以包含多组行,还可以自定义每列的宽度

其它类型的表格

还有两个非常独特的表格类型(基于<simpletable>元素):

  • <Properties>,用在reference topic中,用以定义属性列表。
  • <Choicetable>,用在task topic中,用以显示各种选择之间的差异。
扩展阅读

第3章节,DITA风格指南,表格部分

CALS的背景信息

参与人员
  • Simon Bate, Scriptorium
  • Bill Swallow, Scriptorium
Previous Lesson
Back to Course
Next Lesson

Categories: Free

sidebar

Blog Sidebar

  • Scriptorium logo
    Maximize the value of your content. Read more.
  • Scriptorium logo
    Need DITA help? We offer flat-rate consulting. Get help.
  • Scriptorium logo
    Already in DITA and need support? Contact us.
RSSTwitter

Want to add content? Join the ditatraining GitHub repository.

  • Home
  • Sponsor
  • News
  • Contact
  • Privacy

Maintained by Scriptorium Publishing

Logo and site presentation © 2015-2021 Scriptorium Publishing. Content based on the open-source DITA training project.