Documentation Center

Configuring TemplateSpecification.xml for cross reference title fill

Make XML Editors (XMetal, oXygen, Arbortext, ...) use either the title of the logical object or the title of the referenced element if the element has one, when the Text to display field is empty.

About this task

Location
The file TemplateSpecification.xml is located on the web server in $\Author\ASP\ClientConfig.

Procedure

  1. Edit TemplateSpecification.xml and find the selecteditem variable.
  2. Set the variable to one of these values:
    • selecteditem:textortitle: When Text to display is empty the link label will be filled with the logical title of the referenced object.
    • selecteditem:textordefault: When Text to display is empty the link label will be filled with the title of the referenced element, if the element has a title.

For Example:

<templateSpecification>
	<linktemplates>
		<template id="LINK-DITA-TOPICREF" name="topicref">
			<documentFragment>
				<topicref href="selecteditem:href">
					<topicmeta>
						<navtitle>selecteditem:textortitle</navtitle>
					</topicmeta>
				</topicref>
			</documentFragment>
		</template>
	</linktemplates>
	<hyperlinktemplates>
		<template id="HYPERLINK-DITA-XREF" name="xref">
			<documentFragment>
				<xref href="selecteditem:href">selecteditem:textortitle</xref>
			</documentFragment>
		</template>
	</hyperlinktemplates>
</templateSpecification>