<bodydiv>

The <bodydiv> element is used to contain informal blocks of information within the body of a topic. The <bodydiv> element is specifically designed to be a grouping element, without any explicit semantics, other than to organize subsets of content into logical groups that are not intended or should not be contained as a topic. As such, it does not contain an explicit title to avoid enabling the creation of deeply nested content that would otherwise be written as separate topics. For content that requires a title, use a <section> element or a nested topic.

The <bodydiv> element can nest itself, which means that it can be used as a specialization base to create structured information within a body. Another common use case for the <bodydiv> element is to group a sequence of related elements for reuse, so that another topic can reference the entire set with a single @conref attribute.

Because the <bodydiv> element allows <section>, it cannot be used within <section> elements. Use the <div> element to group content that might occur in both topic bodies and sections.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

- topic/bodydiv

Example

This section is non-normative.

<topic id="sample" xml:lang="en">
 <title>Sample for bodydiv</title>
 <body>
  <bodydiv id="div">
   <p>This set of information is reusable as a group.</p>
   <p>Lists of three contain three items.</p>
   <ul>
    <li>This is one item.</li>
    <li>This is another item.</li>
    <li>This is the third item.</li>
   </ul>
  </bodydiv>
  <p>This concludes my topic.</p>
 </body>
</topic>

Content model

(Text | <dl> | <div> | <fig> | <image> | <lines> | <lq> | <note> | <object> | <ol> | <p> | <pre> | <simpletable> | <sl> | <table> | <ul> | <boolean> | <cite> | <keyword> | <ph> | <q> | <term> | <text> | <tm> | <xref> | <state> | <data> | <data-about> | <foreign> | <unknown> | <draft-comment> | <fn> | <indextermref> | <indexterm> | <required-cleanup> | <bodydiv> | <section>)*

Contained by

<body>, <bodydiv>

Zero or more of the following
  • Text
  • <bodydiv>
  • <boolean>
  • <cite>
  • <data>
  • <data-about>
  • <div>
  • <dl>
  • <draft-comment>
  • <fig>
  • <fn>
  • <foreign>
  • <image>
  • <indexterm>
  • <indextermref>
  • <keyword>
  • <lines>
  • <lq>
  • <note>
  • <object>
  • <ol>
  • <p>
  • <ph>
  • <pre>
  • <q>
  • <required-cleanup>
  • <section>
  • <simpletable>
  • <sl>
  • <state>
  • <table>
  • <term>
  • <text>
  • <tm>
  • <ul>
  • <unknown>
  • <xref>

Contained by

  • <body>
  • <bodydiv>

Inheritance

- topic/bodydiv

The <bodydiv> element is a base element type. It is defined in the topic module.

Attributes

The following attributes are available on this element: Universal attribute group and outputclass.