Documentation Center

Configuring TemplateSpecification.xml for cross reference title fill

Make XMetaL use the title of the object or the title of the referenced element if the element has one, when the Text to display field is empty. The same procedure can be applied to the other XML Editors, for the equivalent field.

About this task

Location
The file TemplateSpecification.xml is located on the web server in $\Author\ASP\ClientConfig.
Object title
The title specified in the object's properties.

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 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="Dita.XRef.Template" name="xref">
			<documentFragment>
				<xref href="selecteditem:href">selecteditem:textortitle</xref>
			</documentFragment>
		</template>
	</hyperlinktemplates>
</templateSpecification>