Page 1 of 1

No icons and generated text showed in default HTML5 generated by Oxygen

Posted: Fri Aug 16, 2019 8:49 am
by lhsihan
Hi experts,
I have one short question that:
When using Oxygen to transform DITA files to HTML5 using default "DITA HTML5" transformation scenarios, we found the below items were lost in the generated HTML5.
1. all the icons for Note such like "note" "warning"
2. the generated text such like "What to do next" "Before you begin"

How can we let the note icons and generated text showed in the HTML5?
Could you please give me a hand on this? Thanks a lot!

Re: No icons and generated text showed in default HTML5 generated by Oxygen

Posted: Fri Aug 16, 2019 3:43 pm
by Radu
Hi,

Please see some answers below:
1. all the icons for Note such like "note" "warning"
The default HTML5 output provided by the DITA Open Toolkit publishing engine indeed does not show icons for notes.
Our WebHelp Responsive output does.

There is a bunch of note-type images located in OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/app/img.
What you could do would be to look at how the HTML generated by the DITA content looks like and then create your own custom CSS which adds images for various note types. If you edit a transformation scenario in Oxygen there is a "Parameters" list containing a transformation parameter called "args.css" which needs to point to the custom CSS and a parameter called "args.copycss" which needs to be set to "yes" to copy your custom CSS to the output folder.
2. the generated text such like "What to do next" "Before you begin"
If you edit a transformation scenario in Oxygen there is a "Parameters" list containing a transformation parameter called "args.gen.task.lbl" which needs to be enabled to output static texts for various DITA task elements.

Regards,
Radu

Re: No icons and generated text showed in default HTML5 generated by Oxygen

Posted: Mon Aug 19, 2019 4:48 pm
by lhsihan
Thanks so much Radu. It is very helpful.