Stepresult not shown if pdf
Post here questions and problems related to editing and publishing DITA content.
Stepresult not shown if pdf
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
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
-
- Posts: 498
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Stepresult not shown if pdf
Post 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
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
-
- Posts: 498
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Stepresult not shown if pdf
Post by julien_lacour »
You could create such labels directly from a custom CSS stylesheet, like this:
Regards,
Julien
Code: Select all
*[class ~= "task/stepresult"]::before {
font-weight: bold;
content: "Step Result\A";
}
Julien
Re: Stepresult not shown if pdf
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
I also added a padding in that part -
Code: Select all
padding-left: 10px;
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
-
- Posts: 498
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Stepresult not shown if pdf
Post by julien_lacour »
Hi Mikael,
You need to move the padding into a separate rule applying on the stepresult itself:
Then the ::before element should follow.
Regards,
Julien
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";
}
Regards,
Julien
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service