[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

attr (Custom XML Attribute)

This element specifies a custom XML attribute which shall be located on the parent custom XML element specified via the customXml element (§2.5.1.32.5.1.42.5.1.5; §2.5.1.6). The attributes on this element shall be used to specify the contents of the custom XML attribute.

[Example: Consider a custom XML element with the following properties:

<w:customXmlPr>
<w:attr w:name="companyName" … />
<w:attr w:name="companySymbol … />
</w:customXmPr>

This property bag specifies that the parent custom XML element shall have two attributes associated with it, he first with a name of companyName, and the second with a name of companySymbol. end example]

Parent Elements

customXmlPr2.5.1.7)

 

Attributes

Description

name (Name)

Specifies the name of the current custom XML attribute or smart tag property.

 

[Example: Consider a custom XML attribute which shall have a name of companyName. This requirement would be specified using the following WordprocessingML:

 

<w:customXmlPr>
<w:attr w:name="companyName" … />
</w:customXmlPr>

 

The name attribute specifies that the name for this property shall be companyName. end example]

 

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

uri (Namespace)

Specifies the namespace URI of the current custom XML attribute or smart tag property.

 

If this attribute is omitted, the URI shall be assumed to be null (no associated URI).

 

[Example: Consider a smart tag property which shall have a namespace URI of http://schemas.openxmlformats.org/2006/example. This requirement would be specified using the following WordprocessingML:

 

<w:smartTagPr>
<w:attr w:uri="http://schemas.openxmlformats
.org/2006/example" … />
</w:smartTagPr>

 

The uri attribute specifies that the namespace for this property shall be http://schemas.openxmlformats.org/2006/example. end example]

 

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

val (Value)

Specifies the value of the current custom XML attribute or smart tag property.

 

[Example: Consider a smart tag property which shall have a value of propertyValue. This requirement would be specified using the following WordprocessingML:

 

<w:smartTagPr>
<w:attr … w:val="propertyValue" />
</w:smartTagPr>

 

The val attribute specifies that the value for this property shall be propertyValue. 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_Attr">

   <attribute name="uri" type="ST_String"/>

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

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

</complexType>