<xmlatt>

An XML attribute is a name and value pair that is associated with an XML element. It defines properties of the XML element.

Usage information

The content of the <xmlatt> element should be the attribute name without the at symbol (@), for example, processing-role.

Rendering expectations

The contents of the <xmlatt> element is typically rendered with a preceding at symbol (@).

Specialization hierarchy

The <xmlatt> element is specialized from <markupname>; the <xmlatt> element is defined in the XML-mention domain module. The <markupname> element is specialized from <keyword>, and the <markupname> element is defined in the markup-name domain module.

Content model

(Text | <draft-comment> | <required-cleanup> | <text> )*

Zero or more
  • Text
  • <draft-comment>
  • <required-cleanup>
  • <text>

Attributes

The following attributes are available on this element: universal attributes and @keyref.

The following attributes are available on this element: universal attributes and the attributes defined below.

@keyref
Specifies a key name that acts as a redirectable reference based on a key definition within a map. See STUB CONTENT for information on using this attribute.

For HDITA, the equivalent of @keyref is @data-keyref

Example

This section is non-normative.

The following code sample shows how the <xmlatt> element can be used to tag mentions of the @collection-type and @linking attributes:

<p>The <xmlatt>collection-type</xmlatt> and <xmlatt>linking</xmlatt> 
attributes affect how related links are generated for topics that are 
referenced in the DITA map.</p>