Body
The body contains the main content of a topic.
Syntax
The syntax for representing this component varies depending on the authoring format:
| Authoring format | Syntax and example |
|---|---|
| XDITA |
|
| HDITA |
|
| MDITA |
There is no specific support in the MDITA core profile. If needed, use an HDITA snippet. |
Attributes
The available attributes vary based on the authoring format:
- XDITA and HDITA
- The following attributes are available on this element: localization attributes and universal attributes.
- MDITA
- There is no attribute support for the MDITA core profile. For the MDITA extended profile, attributes can be specified by using the HDITA representation.
Examples
The following example demonstrates the use of body in an XDITA topic.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD LIGHTWEIGHT DITA Topic//EN" "lw-topic.dtd">
<topic id="franchise-intro">
<title>An innovative, attractive, and out of the ordinary concept</title>
<body>
<p>Are you interested in investing with us? Welcome to our franchise information package.</p>
</body>
</topic>
The following example demonstrates the use of body in an HDITA topic.
<!DOCTYPE html>
<title>An innovative, attractive, and out of the ordinary concept</title>
<body>
<article id="franchise-intro">
<h1>An innovative, attractive, and out of the ordinary concept</h1>
<p>Are you interested in investing with us? Welcome to our franchise information package.</p>
</article>
</body>
The following example demonstrates the equivalent of the body component in an MDITA topic.
# An innovative, attractive, and out of the ordinary concept
Are you interested in investing with us? Welcome to our franchise information package.