HTML "rolled up" files in output

Here should go questions about transforming XML with XSLT and FOP.
chymical
Posts: 16
Joined: Wed Nov 24, 2010 12:37 pm

HTML "rolled up" files in output

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

Re: HTML "rolled up" files in output

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
chymical
Posts: 16
Joined: Wed Nov 24, 2010 12:37 pm

Re: HTML "rolled up" files in output

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

Re: HTML "rolled up" files in output

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