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

lhsihan
Posts: 36
Joined: Thu Aug 15, 2019 5:31 pm

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

Post by lhsihan » Fri Aug 16, 2019 8:49 am

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!

Radu
Posts: 6579
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Fri Aug 16, 2019 3:43 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

lhsihan
Posts: 36
Joined: Thu Aug 15, 2019 5:31 pm

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

Post by lhsihan » Mon Aug 19, 2019 4:48 pm

Thanks so much Radu. It is very helpful.

Post Reply