Page 1 of 1

Conditional behaviour for front matter

Posted: Tue Mar 17, 2020 2:38 am
by GHogarth
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>

Grant

Re: Conditional behaviour for front matter

Posted: Tue Mar 17, 2020 7:52 am
by Radu
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:

https://www.oxygenxml.com/doc/versions/ ... -text.html

Regards,
Radu