• 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
    Already in DITA and need support? Contact us.
RSSTwitter

Want to add content? Join the ditatraining GitHub repository.

  • Home
  • Sponsor
  • News
  • Contact
  • Privacy
  • Cookie Policy

Maintained by Scriptorium Publishing

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

Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}