Controlling chunk processing by the output type

199 views
Skip to first unread message

Toshihiko Makita

unread,
Mar 5, 2017, 4:37:49 AM3/5/17
to DITA-OT Users

Hi All,


I have a question about controlling @chunk attribute. My user uses one bookmap for multiple output (PDF, HTML). For HTML output they added topicref/@chunk=”to-content” to bind the underling topic contents to one HTML page. If @chunk=”to-content” is set to a topicref, the DITA-OT generates one topic that contains nested topics. But in the PDF output they want to disable this processing because PDF does not need chunk processing. PDF is a page media, pages are stacked from one to another sequentially. So binding topic contents is not necessary. 

 

Is it possible to enable @chunk attribute for HTML output and disable it in PDF output by configuring DITA-OT?

 

I tried root-chunk-override property in PDF processing. But it only replaces map/@chunk attribute. Each topicref/@chunk attributes under the map are honored in DITA-OT processing.

 

Regards,

-- 
/*--------------------------------------------------
 Toshihiko Makita
 Development Group. Antenna House, Inc. Ina Branch
 Web site:
 http://www.antenna.co.jp/
 http://www.antennahouse.com/
 --------------------------------------------------*/

Jarno Elovirta

unread,
Mar 5, 2017, 7:33:12 AM3/5/17
to Toshihiko Makita, DITA-OT Users
Set preprocess.chunk.skip=true to disable chunk processing.

Jarno


--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Toshihiko Makita

unread,
Mar 6, 2017, 7:02:26 AM3/6/17
to DITA-OT Users, toshihik...@gmail.com
Hi Jarno,

Thank you for your reply.
It worked fine as expected!

Rahul H

unread,
Mar 9, 2017, 12:08:01 PM3/9/17
to DITA-OT Users, toshihik...@gmail.com
Hi Jarno,

I have the same issue in my PDF. I am not good in ant file creation. Could you please help me where I can set the preprocess.chunk.skip=true in the below target code or do I need to add another target for skipping chunk?

<target name="chunk-check">
    <condition property="preprocess.chunk.skip">
      <isset property="noMap"></isset>
    </condition>
  </target>

Thanks in Advance.
Rahul R

Toshihiko Makita

unread,
Mar 11, 2017, 3:02:49 AM3/11/17
to DITA-OT Users, toshihik...@gmail.com
Hi Rahul,

Jarno must be busy with DITA-OT developing work so much. So here is my example.

AntennaHouse/pdf5-ml integrator.xml

If you want disable chunk processing for your plug-in, simply set preprocess.chunk.skip=true by the following code.

 <!-- Set property not to process chunking -->
  <condition property="preprocess.chunk.skip">
    <equals arg1="${transtype}" arg2="pdf5.ml" casesensitive="false"/>
  </condition>

You should replace "pdf5.ml" by your plug-in tanstype defined in plugin.xml.

Hope this helps your development.
Reply all
Reply to author
Forward
0 new messages