Map templates
Map templates are sections in TemplateSpecification.xml that are used to configure the tree view in Publication Manager.
The templates are matched to nodes in the tree view using the element name of the XML node assigned to the node in the tree view. When the template contains a document fragment, the XML attributes menu item is available, and the user is able to make changes to the node. To be able to create a node in the tree view, the element name of the XML node assigned to the parent node must match the elementname attribute of a parentnode element of a template element.
<template id="Dita.TopicRef.Template.Update" name="topicref">
<label resourceref="Dita.TopicRef.Form.Label">Topic Ref</label>
<labelXPath>{$labelxpath-section-default}</labelXPath>
<linkXPath>{$linkxpath-section-default}</linkXPath>
<form ref="Dita.TopicRef.Form.Update" />
<documentFragment linkFieldName="HRefField">
<topicref href="contentitem:HRefField" keys="contentitem:KeysField" format="contentitem:FormatField" linking="contentitem:LinkingField" ishcondition="contentitem:ConditionField">
<topicmeta>
<navtitle>contentitem:NavTitleField</navtitle>
</topicmeta>
</topicref>
</documentFragment>
</template>