[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

defaultTableStyle (Default Table Style for Newly Inserted Tables)

This element specifies the table style which shall automatically be applied to the table properties of tables added to this document by an application. Note that it does not change the table style applied to tables which do not reference a style, instead, it automatically applies the style to that table via the tblStyle element (§2.4.59). This link is made by referencing the styleId attribute value of the table style which shall be used to format newly inserted tables.

If this element is omitted, then no table style shall automatically be applied to inserted tables (therefore inheriting the default table style). If the referenced style is not present or not a table style, then no table style shall automatically be applied to inserted tables.

[Example: Consider a WordprocessingML document which should use the LightShading-Accent3 style. This requirement is specified using the following WordprocessingML in the document settings:

<w:defaultTableStyle w:val="LightShading-Accent3" />

The corresponding table style must therefore exist in the styles part:

<w:style w:type="table" w:styleId="LightShading-Accent3">

</w:style>

The defaultTableStyle element's val attribute has a value of LightShading-Accent3 specifying that that style will be applied automatically to newly inserted tables. end example]

Parent Elements

settings2.15.1.78)

 

Attributes

Description

val (String Value)

Specifies that its contents will contain a string.

 

The contents of this string are interpreted based on the context of the parent XML element.

 

[Example: Consider the following WordprocessingML fragment:

 

<w:pPr>

<w:pStyle w:val="heading1" />

</w:pPr>

 

The value of the val attribute is the ID of the associated paragraph style's styleId.

 

However, consider the following fragment:

 

<w:sdtPr>

<w:alias w:val="SDT Title Example" />

...

</w:sdtPr>

 

In this case, the decimal number in the val attribute is the caption of the parent structured document tag. In each case, the value is interpreted in the context of the parent element. end example]

 

The possible values for this attribute are defined by the ST_String simple type2.18.89).

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

<complexType name="CT_String">

   <attribute name="val" type="ST_String" use="required"/>

</complexType>