V2EX  ›  英汉词典

DTD

释义 (Definition)

DTDDocument Type Definition 的缩写,意为“文档类型定义”。它用于 XML/SGML 中,用来声明文档允许出现哪些元素、属性及其结构规则,从而帮助程序对文档进行 校验(validation)

发音 (Pronunciation, IPA)

/ˌdiː tiː ˈdiː/

例句 (Examples)

A DTD defines the structure of an XML document.
DTD 定义了 XML 文档的结构。

The editor rejected the file because it didn’t match the DTD specified in the DOCTYPE declaration.
编辑器拒绝了该文件,因为它不符合在 DOCTYPE 声明中指定的 DTD。

词源 (Etymology)

DTD 源自缩写 Document Type Definition,最初用于 SGML(标准通用标记语言),后来在 XML 中也沿用这一概念,用来描述“某类文档的合法格式”。

相关词 (Related Words)

文学与经典作品中的用例 (Notable Works)

  • W3C《Extensible Markup Language (XML) 1.0》(XML 1.0 规范,介绍 DTD、DOCTYPE 与有效性约束)
  • Elliotte Rusty Harold《XML in a Nutshell》(广泛讲解 DTD 与 XML 工具链)
  • W. Jason Gilmore 等《Beginning XML》(入门书中常以 DTD 作为 XML 结构约束示例)
  • Charles F. Goldfarb《The SGML Handbook》(SGML 经典著作,涉及 DTD 的核心思想与用途)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   727 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 20:35 · PVG 04:35 · LAX 12:35 · JFK 15:35
♥ Do have faith in what you're doing.