Conditional behaviour for front matter

Posts: 26
Joined: Tue Aug 27, 2019 10:55 pm

Conditional behaviour for front matter

Post by GHogarth » Tue Mar 17, 2020 2:38 am

Hi there;
I'm looking for a simple way I can use the same map for both PDF and HTML output, but only have the frontmatter (copyright & TOC) appear in the PDF output. I've done a bunch of reading, and have only ended up more confused than when I started. <grin>


Posts: 7477
Joined: Fri Jul 09, 2004 5:18 pm

Re: Conditional behaviour for front matter

Post by Radu » Tue Mar 17, 2020 7:52 am

Hi Grant,

Maybe you can add on the bookmap <frontmatter> element a profiling attribute:

Code: Select all

  <frontmatter deliveryTarget="pdf">
and then when publishing the transformation scenario has a "Filters" tab, for the HTML-based transformation scenario you can choose to "Exclude from output" all attributes named deliveryTarget with value pdf.

More about DITA profiling: ... -text.html

Radu Coravu
<oXygen/> XML Editor

Post Reply