xml editor

Products

Features

  EPUB
Supported platforms

Supports Windows 7 & Mac OS X Lion

Ready for XML Editor data server software
W3C Member

Generate single html from the ditamap

Questions about XML that are not covered by the other forums should go here.

Generate single html from the ditamap

Postby altein » Thu Feb 11, 2010 12:02 am

Hi,
I noticed that when using the XHTML transformation, each topic is output in its own file. Is there a way of including a toc in every html file (i.e., in its own <div> element)?

Thanks,
Allan
altein
 
Posts: 13
Joined: Mon Jan 18, 2010 4:32 pm

Re: Generate single html from the ditamap

Postby Radu » Thu Feb 11, 2010 10:27 am

Hi Allan,

I don't quite understand your question.
From the subject I understand that you want to generate a single XHTML document (similar to the PDF output but in the XHTML form) from the DITA project.
From the topic body I understand that you want to include a table of contents in each of the generated XHTML files.
Which one is it?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
 
Posts: 1374
Joined: Fri Jul 09, 2004 5:18 pm

Re: Generate single html from the ditamap

Postby altein » Fri Feb 12, 2010 2:56 pm

I apologize for the unclarity.
I wanted to know if you could generate a single XHTML document
from the ditamap, like you do when you generate a .pdf file from the ditamap.

Thanks,
Allan
altein
 
Posts: 13
Joined: Mon Jan 18, 2010 4:32 pm

Re: Generate single html from the ditamap

Postby Radu » Fri Feb 12, 2010 3:22 pm

Hi Allan,

There is not a builtin transformation in Oxygen which does that but there is a way:
1) Edit the OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\demo\fo\build.xml file, find the target
Code: Select all
<target name="delete.fo2pdf.topic.fo" unless="retain.topic.fo">

and delete its entire content (leaving it empty). This will inhibit the DITA Open Toolkit from removing the output XSL:FO file once the PDF is constructed.

2) Run an IDIOM PDF transformation on the DITA Map.
After the transformation open in Oxygen the "topic.fo" file which will be created in the DITA transformation output folder.

3) There is a free XSLT stylesheet implementation which transforms from XSL:FO to XHTML. You can register on the RenderX website and download it:
http://www.renderx.com/tools/fo2html.html

4) Transform the FO file using the XSL stylesheet and saving the result as the HTML result.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
 
Posts: 1374
Joined: Fri Jul 09, 2004 5:18 pm


Return to General XML Questions

Who is online

Users browsing this forum: No registered users and 0 guests

XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor