<wintitle> style not working on CHM output

Questions about XML that are not covered by the other forums should go here.
khcy82nvh
Posts: 17

<wintitle> style not working on CHM output

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: 5689

Re: <wintitle> style not working on CHM output

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

Re: <wintitle> style not working on CHM output

Fri Nov 09, 2012 5:43 am

Thanks a lot Radu

It works very well

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 4 guests