Page 1 of 1
Stepresult not shown if pdf
Posted: Wed Mar 01, 2023 12:54 pm
by MWdal
Hello,
We run a Dita Map PDF - based on HTML5 & CSS transformation scenario, with parameter args.gen.task.lbl = YES. For the topic type Task we still don't see the text Result: for the tag stepresult in the pdf. Other labels like Before you begin, About this task, are shown. Is there another parameter for stepresult, or am I missing something else?
Using Oxygen v.24.1, Dita OT 3.7.
thanks,
Mikael
Re: Stepresult not shown if pdf
Posted: Wed Mar 01, 2023 5:25 pm
by julien_lacour
Hello Mikael,
The 'args.gen.task.lbl' property only tells the transformation to show the task labels, not the step ones.
As stepresult is a child of step, it isn't processed by this property.
Regards,
Julien
Re: Stepresult not shown if pdf
Posted: Wed Mar 01, 2023 5:29 pm
by julien_lacour
You could create such labels directly from a custom CSS stylesheet, like this:
Code: Select all
*[class ~= "task/stepresult"]::before {
font-weight: bold;
content: "Step Result\A";
}
Regards,
Julien
Re: Stepresult not shown if pdf
Posted: Thu Mar 02, 2023 1:29 pm
by MWdal
Thanks Julien, that works fine.
I also added a padding in that part -
.
That works on the label, but not on the rest of the text in the step result. Is there a way to get the same indent on the complete step result text?
/Mikael
Re: Stepresult not shown if pdf
Posted: Thu Mar 02, 2023 2:29 pm
by julien_lacour
Hi Mikael,
You need to move the padding into a separate rule applying on the stepresult itself:
Code: Select all
*[class ~= "task/stepresult"] {
padding-left: 10px;
}
*[class ~= "task/stepresult"]::before {
font-weight: bold;
content: "Step Result\A";
}
Then the ::before element should follow.
Regards,
Julien