Pages: 1
Print
Author Topic: TOPLEAF: Suppress a topicref's href file's <title> content?  (Read 1744 times)
palmer@dst
Member

Posts: 56


« on: January 30, 2014, 10:29:34 AM »

We've set up automatic chapter/appendix titling/#ing based on the navtitle of topicref in a DITA Map, but then the <title> of the file targeted in the topicref's href is repeated immediately following the chapter/appendix title.

How can we suppress the <title> content of an href linked to a topicref used for a chapter/appendix heading?

Thanks,

R Palmer
Logged

rpalmer
DST Systems, Inc.
tonys
JustSystems Partner
Member

Posts: 80


« Reply #1 on: January 30, 2014, 02:45:46 PM »

The general pattern for conditionally suppressing some content is to set the suppress option in the mapping and put something like the following in the custom content:

<if var="ShowTitle" target="1">
  <Title><content/></Title>
</if>

and set the ShowTitle variable according to whether the title has already appeared.
Logged
Pages: 1
Print
Jump to: