<wintitle> style not working on CHM output

Questions about XML that are not covered by the other forums should go here.
khcy82nvh
Posts: 17
Joined: Mon Oct 22, 2012 10:59 am

<wintitle> style not working on CHM output

Post by khcy82nvh » Mon Nov 05, 2012 7:20 am

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,

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

Re: <wintitle> style not working on CHM output

Post by Radu » Mon Nov 05, 2012 3:25 pm

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

khcy82nvh
Posts: 17
Joined: Mon Oct 22, 2012 10:59 am

Re: <wintitle> style not working on CHM output

Post by khcy82nvh » Fri Nov 09, 2012 5:43 am

Thanks a lot Radu

It works very well

Post Reply