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.xmlis located on the web server in $\Author\ASP\ClientConfig. - Object title
- The title specified in the object's properties.
Procedure
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>