Skip to main content
hadih26673991
Inspiring
February 13, 2020
Question

How to chunk topics within slave ditamaps?

  • February 13, 2020
  • 1 reply
  • 1510 views

In order to publish to HTML, I am using dita and xml. I have a parent ditamap (book map), which includes multiple ditamaps, each is a chapter, including individual dita topics. I would like to chunk these dita topics, which as said are inside the chapter ditamaps, such that each chapter appears on one HTML page. Otherwise, each individual topic appears on one HTML page. 

I tried chunk="to-content" in the chapter ditamaps, as an example:

<map>

 <topicref keyref="introduction_computed_tomography" type="topic" chunk="to-content">
<topicref keyref="xray_basics" type="topic"/>
<topicref keyref="computed_tomography_basics" type="topic"/>
</topicref>

</map>

This chunks the individual topics but the links and figures are gone. Is there a better way of gluing the topics inside the ditamap together?

This topic has been closed for replies.

1 reply

Adobe Employee
February 13, 2020

You may wanna try using chunk=by-document

 

https://docs.oasis-open.org/dita/v1.2/os/spec/archSpec/chunking.html

 

Thanks

Amitoj Singh

 

hadih26673991
Inspiring
February 14, 2020

No that didn't work. I got it work using dita-ot. By adding chucnk="to-content" to the lower level ditamaps. It then creates Chunkxxx.html files (xxx are numbers) which are getting referenced inside the index.html file. The appearance is not as good as the one in FrameMaker but it combines the topics as I want.

If I do the same in FrameMaker, the chunking is ignored. However, In FM, I was able to chucnk the whole book in one page by putting chucnk="to-content" on the master ditamap (dita book map). Ufortunately, this is not what I would like to show.

Adobe Employee
February 15, 2020

Hadi,

 

could you share a small sample with me on how you are currently doing it by uploading it on google drive and sharing a link.

 

Thanks

Amitoj SIngh

Email: amisingh@adobe.com