Conditional behaviour for front matter

Post here questions and problems related to editing and publishing DITA content.
GHogarth
Posts: 26
Joined: Tue Aug 27, 2019 10:55 pm

Conditional behaviour for front matter

Post 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
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Conditional behaviour for front matter

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply