Page 1 of 1

HTML "rolled up" files in output

Posted: Tue Apr 05, 2011 7:16 pm
by chymical
Hi,

Is it possible to change the 1:1 mapping of topics to HTML files in output?

I am using DITA-OT and using the XHTML transformation scenario. I have nested topicrefs in my ditamap, and what I want to do is to generate a single HTML file for each second level heading, rather than have a separate HTML file for each topic. For example:

ditamap hierarchy:
1. Topic 1
1.1 Topic 2
1.2 Topic 3
1.2.1 Topic 4
1.2.2 Topic 5
1.3 Topic 6
2. Topic 7
2.1 Topic 8
etc

What I want is to generate output files that contain:

HTML_1 - Topic 1
HTML_2 - Topic 2
HTML_3 - Topics 3,4 and 5
HTML_4 - Topic 6
HTML_5 - Topic 7
HTML_6 - Topic 8

Anything that rolls up the files would be helpful. Is it possible?

Thanks,

John

Re: HTML "rolled up" files in output

Posted: Wed Apr 06, 2011 5:56 am
by Radu
Hi John,

Unfortunately the way in which the DITA OT XHTML transformation is constructed generates an HTML file for each DITA topic so I don't think this is possible. Maybe you should also ask around on the DITA Users List.

Regards,
Radu

Re: HTML "rolled up" files in output

Posted: Tue Apr 19, 2011 1:12 pm
by chymical
Hi,

Just for information, there is an attribute called chunk that you can use in the ditamap to control this type of output, see http://docs.oasis-open.org/dita/v1.1/OS ... nking.html

Cheers!

Re: HTML "rolled up" files in output

Posted: Tue May 03, 2011 11:16 am
by Radu
Hi John,

Did not know about this one :oops:
Thanks for updating the thread as other users might be interested in this.

Regards,
Radu