##### 24.4.6.3 Specifying attribute values for the root element of a topic

To apply attributes to the root element of the current topic, assign attribute="value" pairs, separated by spaces, to the paragraph format for the topic title:

[DITATopicRootAttrs]
; para format for topic title (wildcards OK) = attributes for
; the root element of the current topic.
ParaFmt = attribute1="value1" attribute2="value2" ...

For example, for attributes to support another tool such as Docato that you will use to manage the DITA XML output, suppose your paragraph format for concept topic titles is ConHead:

[DITATopicRootAttrs]
ConHead = xmlns:xsa3="http://dita.oasis-open.org/architecture/2005/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../catalog/concept.xsd"

Of course this assignment would have to be all on one line in your configuration file, though it might not look that way here.

You can override root-element attributes with a DITATopicRootAttr PI marker.

Previous Topic: 24.4.6.2 Including an id attribute in every element

Next Topic: 24.4.6.4 Specifying attribute values for a block element or parent

Parent Topic: 24.4.6 Assigning attributes to DITA elements

Sibling Topics:

24.4.6.1 Specifying a value for the id attribute

24.4.6.2 Including an id attribute in every element

24.4.6.4 Specifying attribute values for a block element or parent

24.4.6.5 Specifying attribute values for an inline element

24.4.6.6 Providing outputclass attributes for all elements

Table of Contents • Index