divId (Associated HTML div ID)

advertisement
Error! No text of specified style in document. - Error! No text of specified style in document.
1
2
3
4
5
6
7
8
9
10
divId (Associated HTML div ID)
This element specifies the HTML div information which is associated with the current table row. This
information, stored in the Web Settings part, is used to associate one or more table rows with a particular HTML
div element. [Note: This property is used when saving an HTML document into the WordprocessingML format in
order to prevent a loss of all HTML div information, so that the document can later be saved back into HTML
format and have the stored information replaced, since the HTML div can store formatting properties on
arbitrary regions. end note]
In order to determine the associated HTML div properties, the value of the val attribute on this element is used
to look up an associated div element (§Error! Reference source not found.) whose id attribute matches this
value.
13
If this table row does not have a divId element present, then this table row shall not have any associated HTML
div information. If this element is present, but the val attribute specifies an id value which does not have an
associated div element, then this element is ignored.
14
[Example: Consider an HTML document defined as follows:
11
12
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<body>
<div style="…">
<table>
<tr>
<td>R1C1</td>
…
</tr>
</table>
<p>
…
</p>
</div>
…
</body>
</html>
This HTML document specifies a div spanning the table and the first paragraph. If this document is saved into
WordprocessingML, then both the rows of the table and the paragraph shall have a divId which points at the
same div information in the web settings part:
<w:trPr>
…
<w:divId w:val="1102603671"/>
</w:trPr>
Error! No text of specified style in document. - Error! No text of specified style in document.
1
2
3
4
5
6
7
The val attribute then points at a div element which stores the associated div properties:
<w:divs>
<w:div w:id="1102603671">
…
</w:div>
</w:divs>
This specifies that this table's rows are part of a single HTML div. end example]
Parent Elements
trPr (§Error! Reference source not found.); trPr (§Error! Reference source not found.); trPr (§Error! Reference
source not found.); trPr (§Error! Reference source not found.)
8
Attributes
val (Decimal
Number Value)
Description
Specifies that the contents of this attribute will contain a decimal number.
The contents of this decimal number are interpreted based on the context of the parent
XML element.
[Example: Consider the following numeric WordprocessingML property of type
ST_DecimalNumber:
<w:… w:val="1512645511" />
The value of the val attribute is a decimal number whose value must be interpreted in
the context of the parent element. end example]
The possible values for this attribute are defined by the ST_DecimalNumber simple type
(§Error! Reference source not found.).
Error! No text of specified style in document. - Error! No text of specified style in document.
1
The following XML Schema fragment defines the contents of this element:
2
3
<complexType name="CT_DecimalNumber">
<attribute name="val" type="ST_DecimalNumber" use="required"/>
</complexType>
4
Download