Copyright © Philip M. Parker, INSEAD. Terms of Use.

| Domain | Definition |
Computing | Document Type Definition |
Source: compiled by the editor from various references; see credits. | |
(From Wikipedia, the free Encyclopedia)
A Document Type Definition (DTD or DocType for short) is a declaration in an SGML or XML document that specifies constraints on the structure of the document. It may be included within the document file, but is normally stored in a separate ascii-text file. The syntax of SGML and XML DTDs is very similar but not identical.
Defining a DTD specifies the syntax of an application of SGML or XML, which may be a widely-used standard such as XHTML or a local application.
DTDs are usually employed to determine the structure of an XML or SGML document. A DTD will typically describe each allowable element within the document, the possible attributes and (optionally) the allowed attribute values for each element. Further, it will describe the nesting and occurrences of elements. Most of a DTD is usually composed of ELEMENT definitions and ATTLIST definitions.
An example of a very simple XML DTD to describe a list of persons is given below:
An example of an XML file which makes use of this DTD follows:
The DTD given above requires a name element within every person element; the people_list element is also mandatory, but the rest are optional.
Fred Bloggs 27/11/2008 Male
It is possible to render this in an XML-enabled browser (such as IE5 or Mozilla) by pasting and saving the DTD component above to a text file named example.dtd and the xml file to a differently-named text file, and opening the xml file with the browser. The files should both be saved in the same directory. However, many browsers do not check that an XML document conforms to the rules in the DTD; they are only required to check that the DTD is syntactically correct.
Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Document Type Definition."
Crosswords: DOCUMENT TYPE DEFINITION |
| Specialty definitions using "DOCUMENT TYPE DEFINITION": DTD ♦ Text Encoding Initiative. (references) |
| The following statistics estimate the number of searches per day across the major English-language search engines as identified by various trade publications. Hyperlinks lead to commercial use of the expression at Amazon.com. |
| Expression | Frequency per Day |
document type definition | 4 |
| Source: compiled by the editor from various references; see credits. | |
| Language | Translations for "DOCUMENT TYPE DEFINITION"; alternative meanings/domain in parentheses. | ||||||||||||||||||||||
Danish | dokumenttypedefinition (document definition), dokumentdefinition (document definition). (various references) | ||||||||||||||||||||||
Dutch | DTD (document definition), documenttype-definitie (document definition), doctype-definitie (document definition). (various references) | ||||||||||||||||||||||
Finnish | dokumenttityyppimääritys (document definition). (various references) | ||||||||||||||||||||||
French | DTD (document definition), définition de type de document (document definition). (various references) | ||||||||||||||||||||||
German | Dokumenttypendefinition (document definition). (various references) | ||||||||||||||||||||||
Greek | ορισμός εγγράφου (document definition), ορισμός τύπου εγγράφου (document definition). (various references) | ||||||||||||||||||||||
Italian | DTD (document definition), definizione di tipo di documento (document definition), definizione di documento (document definition). (various references) | ||||||||||||||||||||||
Pig Latin | ocumentday ypetay efinitionday DTD (document definition), Definição de Tipo de Documento (document definition). (various references) definición de tipo de documento (document definition), definición de documento (document definition). (various references) DTD (document definition), dokumenttypsdeklaration (document definition). (various references) | ||||||||||||||||||||||
Copyright © Philip M. Parker, INSEAD. Terms of Use.