Conditional format processing of TOC in PDF
Posted: Fri Feb 24, 2012 12:11 am
Hi, I've been scratching my head about this and could not find a solution. Basically what I want to do is this, I have a couple of DITA topic tiles (topic/title) that are formatted as <codeph> (Monospaced font, that is), and when I generate my PDF, I want the TOC entry for the topic title formatted by <codeph> to show in monospaced font, in another word, this is how I want my TOC to look like:
In DITA source doc:
<topic><title><codeph>Ping</codeph> request</title>
In the PDF output, I'd like to see the following:
Chapter 1.........
Ping request..............5
Where I want the bold "Ping" to show in monospaced font, but not the word "request", is this even possible?
I've tried to use exsl:node-set() to extract the navtitle element and apply conditional processing to it, or write a template that points to topic/title and apply conditional processing to it, none of these has worked. It seems to me that the text strings of topic titles in TOC are output from navtitle or spectitle to which no conditional formatting can be applied, am I correct in saying this? Any thought or input from anyone who had successfully gotten this to work is appreciated.
I am using oXygen 13.2 and RenderX XEP to generate PDFs, thanks.
In DITA source doc:
<topic><title><codeph>Ping</codeph> request</title>
In the PDF output, I'd like to see the following:
Chapter 1.........
Ping request..............5
Where I want the bold "Ping" to show in monospaced font, but not the word "request", is this even possible?
I've tried to use exsl:node-set() to extract the navtitle element and apply conditional processing to it, or write a template that points to topic/title and apply conditional processing to it, none of these has worked. It seems to me that the text strings of topic titles in TOC are output from navtitle or spectitle to which no conditional formatting can be applied, am I correct in saying this? Any thought or input from anyone who had successfully gotten this to work is appreciated.
I am using oXygen 13.2 and RenderX XEP to generate PDFs, thanks.