<bodyDiv> (Data for HTML body Element)

This element specifies that the current <div> element does not represent an HTML div element, but rather represents formatting properties on the HTML body element. This element shall specify that the properties specified by this container shall be written out onto the body element if this document is subsequently saved as HTML.

If this element is omitted, then the current <div> element does not represent an HTML body element. If both this element and the <blockQuote> element (§2.15.2.2) are specified, then this element shall be ignored. If this element is specified on any <div> which is not the main <div> element for the document, then this element shall be ignored.

example:
<html>
  <body style="margin-left:200px;margin-top:50px">
    <p>Paragraph one.</p>
    <blockquote style="border: 5px solid #00FFFF">
      <p>Paragraph in a blockquote.</p>
    </blockquote>
    <p>Paragraph two.</p>
  </body>
</html>

When this document is saved in the WordprocessingML format, the information stored on the div, blockquote, and body elements is stored in the web setting part as follows:

<w:divs>
  <w:div w:id="1626542603">
    <w:bodyDiv w:val="true" /><w:divsChild></w:divsChild>
  </w:div>
</w:divs>

The <bodyDiv> element has a @val attribute value of true, which specifies that the <div> element actually represents properties on the HTML body when this document is resaved as HTML. ]

Parent Elements

<div>2.15.2.6)

Attributes

Description

<val> (On/Off Value)

Specifies a binary value for the property defined by the parent XML element.

A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of off, 0, or false specifies that the property shall be explicitly turned off.

<w:… w:val="off"/>

The @val attribute explicitly declares that the property is turned off. ]

The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_OnOff">
	<attribute name="val" type="ST_OnOff"/>
</complexType>