Page 1 of 1
<wintitle> style not working on CHM output
Posted: Mon Nov 05, 2012 7:20 am
by khcy82nvh
Hi guys
In my DITAfiles, I used <wintitle> tag identify dialog windows. This <wintitle> works on Webhelp ouput; however, it does not seem to work on CHM ouput. Are there any solutions to configure the <wintitle> style on CHM output.
Thank you
Regards,
Re: <wintitle> style not working on CHM output
Posted: Mon Nov 05, 2012 3:25 pm
by Radu
Hi,
When publishing using the DITA OT to an XHTML-type output (like CHM) the <wintitle> content is transformed in the XHTML output as something like:
Code: Select all
<span class="keyword wintitle">THE WIN TITLE</span>
This <span> is not styled in any particular way in the CSS which is used by default:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/resource/commonltr.css
What you could do would be to create a new CSS file with some content like:
Code: Select all
span.wintitle{
font-style:italic;
}
then edit the transformation scenario and in the
Parameters list set the parameter
args.css to point to your CSS and the parameter
args.copy.css to
yes.
Regards,
Radu
Re: <wintitle> style not working on CHM output
Posted: Fri Nov 09, 2012 5:43 am
by khcy82nvh
Thanks a lot Radu
It works very well