Different HTML output for topics with/without STEPXMP

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Different HTML output for topics with/without STEPXMP

Post by mdslup »

Try this - create 2 tasks in a map, each with the same number of steps. In one task, add a step example (stepxmp) to one of the steps. Then, run the DITA Map XHTML tranformation.

Look at the generated HTML files:

* In the HTML file WITH the stepxmp, notice that the generated step includes a stepexpand:
<li class="li step stepexpand">

* In the HTML file WITHOUT the stepxml, notice the generated step does NOT include a stepexpand:
<li class="li step">

Is this intentional? It leads to an inconsistent look because some topics have spaces between the steps, while some don't.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Different HTML output for topics with/without STEPXMP

Post by Radu »

Hi,

It seems that the DITA Open Toolkit publishing engine indeed adds that extra "stepexpand" value to the @class attribute and it also has a default CSS rule which adds that extra padding:

Code: Select all

.stepexpand {
margin-top: 1em;
margin-bottom: 1em;
}
.substepexpand {
margin-top: 1em;
margin-bottom: 1em;
}
So maybe you can create your own CSS which overrides these selectors then in the transformation scenario set the "copy.css" parameter to "yes" and the "args.css" parameter to point to your custom CSS.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply