Search found 3 matches

by gevinl
Tue Jul 13, 2021 5:32 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to link external javascript file in a DITA-OT HTML5 output
Replies: 4
Views: 1091

Re: How to link external javascript file in a DITA-OT HTML5 output

There is a transformation parameter named "args.hdf": https://www.dita-ot.org/dev/parameters/parameters-html5.html#html5__args.hdf you can point it to a file containing inside the "<script src="custom.js"></script>" content. The publishing will not automatically copy t...
by gevinl
Mon Jul 12, 2021 6:22 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to link external javascript file in a DITA-OT HTML5 output
Replies: 4
Views: 1091

Re: How to link external javascript file in a DITA-OT HTML5 output

Hi Radu,

Thank you very much for your suggestion.

Yes, it is really work, and solve my problem.

P.s. I uses the example I found in https://www.dita-ot.org/dev/topics/html ... cript.html to write the XML file for args.hdf. It's working.


Cheers!

Gevin
by gevinl
Fri Jul 09, 2021 12:04 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to link external javascript file in a DITA-OT HTML5 output
Replies: 4
Views: 1091

How to link external javascript file in a DITA-OT HTML5 output

I would like to add a link to an external JavaScript file in my DITA-OT output HTML5 file, how do I achieve this? |--[js] | |--custom.js |--[css] | |--custom.css |--index.html |--topic01.html |--topic02.html I want to add a line <script src="custom.js"></script> in the <head> tag of an out...