Compiling the documents

Having trouble installing Oxygen? Got a bug to report? Post it all here.
julie
Posts: 61
Joined: Fri Jun 06, 2008 7:09 am

Compiling the documents

Post by julie »

Hello
I am using OxygenXML to generate xhtml output. When I transform the document to xhtml, each page is opening in a different window. I want the output in the form of a book. Is it not possible to generate the output in the form of a book? Please help.
Regards
Julie
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Compiling the documents

Post by Radu »

Dear Julie,

Unfortunately the DITA OT toolkit integrated in Oxygen generates XHTML only in multi-file format.

But you can use the following trick to achieve this:
First create a DITA-OT "PDF DITA-OT" transformation and execute it for your map.
After running the transformation in your map's directory you should have a folder called "out" which contains both the PDF file and a file called "map_file_name.fo".
You can open the "FO" file in Oxygen and transform it against a XEP FO-to-XHTML XSLT stylesheet which you can download from here: http://dev.kanngard.net/Permalinks/ID_2 ... 55717.html
The output will be a single XHTML file.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
julie
Posts: 61
Joined: Fri Jun 06, 2008 7:09 am

Re: Compiling the documents

Post by julie »

Dear Radu
Thanks for the explanation. After generating the output, when I click a topic in the Content page, the page opens in a different window. I want the page to open in the same window. Please let me know how could I do it.

Thanks
Julie
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Compiling the documents

Post by Radu »

Dear Julie,

For this you have to open the XSLT stylesheet: {OXYGEN_INSTALL_DIR}/frameworks/dita/DITA-OT/xsl/map2htmtoc.xsl in Oxygen and replace the line 38

Code: Select all

<xsl:param name="contenttarget" select="'contentwin'"/>
with

Code: Select all

<xsl:param name="contenttarget" select="''"/>
.
Then save the file and try a new transformation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
julie
Posts: 61
Joined: Fri Jun 06, 2008 7:09 am

Re: Compiling the documents

Post by julie »

Thanks very much, it worked! :)
Post Reply