Adding javascript file

Oxygen general issues.
Minnu
Posts: 22
Joined: Fri Aug 28, 2009 11:39 am

Adding javascript file

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Adding javascript file

Post 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
Post Reply