DTD interpretation

A DTD may be declared in the partition properties or found using the information in the DOCTYPE. The property definition is used if both are present.

If a DTD is found, TopLeaf uses it to determine the following:

  • the set of valid tag and attribute names

  • default attribute values

  • content type (mixed, element or empty)

  • entity definitions

  • whether an end tag may be omitted (SGML only)

Where an element is declared in a DTD then the content type is used to determine how TopLeaf processes white space within the element content or any user customization emitted when that element tag is mapped.

TopLeaf does not verify the correctness of the DTD, nor validate the partition document against the DTD.

Schema formats other than DTD are not supported.