Conditional behaviour for front matter

GHogarth
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>

Grant

Radu
Posts: 7091
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:

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply