This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:dtd_cheat_sheet [2026/07/27 12:09] 185.84.106.232 old revision restored (2026/06/21 09:22) |
notes:dtd_cheat_sheet [2026/07/31 04:30] (current) 129.226.122.114 old revision restored (2026/06/08 10:45) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Document Type Definition (DTD) ===== | ===== Document Type Definition (DTD) ===== | ||
| - | |||
| - | This is a cheat sheet for the DTD language. It is a follow up to the [[XML Cheat Sheet]] and summarizes [[http:// | ||
| * A **D**ocument **T**ype **D**efinition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. | * A **D**ocument **T**ype **D**efinition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. | ||
| Line 43: | Line 41: | ||
| * a,b - a and then b in that order | * a,b - a and then b in that order | ||
| - | |||
| ==== DTD Attributes ==== | ==== DTD Attributes ==== | ||
| - | * An attribute specified in a DTD takes the form < | + | * An attribute specified in a DTD takes the form < |
| - | < | + | |
| - | | + | |
| - | attribute-name2 attribute-type2 default-value2 | + | |
| - | | + | |
| < | < | ||
| | | ||
| - | | + | |
| - | form (Cash|Cheque) " | + | form (Cash|Cheque) " |
| * attribute-type can be one of the following | * attribute-type can be one of the following | ||