Page 1 of 1

Compiling the documents

Posted: Tue Jun 10, 2008 9:16 am
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

Re: Compiling the documents

Posted: Tue Jun 10, 2008 10:19 am
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

Re: Compiling the documents

Posted: Wed Jun 11, 2008 8:04 am
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

Re: Compiling the documents

Posted: Wed Jun 11, 2008 8:48 am
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

Re: Compiling the documents

Posted: Wed Jun 11, 2008 9:32 am
by julie
Thanks very much, it worked! :)