Page 1 of 1

Adding javascript file

Posted: Wed Sep 16, 2009 12:01 pm
by Minnu
Hi All,

I am stuck with this problem in DITA. My requirement is to add a javascript file to all exported html files. I am planning to include a jquery file in the html files, and where do i write the jquery code for it. Please help.

Regards

Re: Adding javascript file

Posted: Wed Sep 16, 2009 1:49 pm
by sorin_ristache
Hello,

You have to customize the DITA-OT stylesheets for that. These stylesheets are used when you transform a DITA map in Oxygen from the view DITA Maps Manager. You can start from the stylesheet [Oxygen-install-folder]\frameworks\dita\DITA-OT\xsl\dita2xhtml.xsl for finding the template(s) which you need to customize depending on the location inside the output HTML files where you want to insert the jquery code.


Regards,
Sorin