WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
Post here questions and problems related to editing and publishing DITA content.
WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
Post by Anonymous1 »
Some auto-texts are not available in the WebHelp (Responsive) output. For example, Procedure, After Completing This Task, Example, Prerequisite, Result. In our PDFs, we have those texts and the authors rely on them when phrasing sentences. In the WebHelp Repsonsive output, the corresponding elements don't offer the possibility to add a title.
On the other hand, notes have the possibility to add a "notetitle".
Is there a way to add something like a title to the elements mentioned above?
Best regards,
Benjamin
On the other hand, notes have the possibility to add a "notetitle".
Is there a way to add something like a title to the elements mentioned above?
Best regards,
Benjamin
Re: WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
Post by Anonymous1 »
Thank you HomeGoods, that's what I was looking for. This gives me all titles I wanted, except the "Example" title.
Re: WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
Post by Anonymous1 »
Sorry for pushing this again.
Can you think of a way to also make the "Example" title appear? We would like to highlight examples in the same way as "Note", "Important", or "Tip".
Can you think of a way to also make the "Example" title appear? We would like to highlight examples in the same way as "Note", "Important", or "Tip".
-
- Posts: 96
- Joined: Wed Feb 09, 2005 8:57 am
Re: WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
The localized "Example" title should appear if the example element is a child of taskbody.
Do you like to have the title in other locations?
Do you like to have the title in other locations?
Re: WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
Post by Anonymous1 »
Overlooked your answer and question, sorry.
Yes, we would like to have the title everytime, we are using the example element. For example, in the conbody of a concept topic.
Yes, we would like to have the title everytime, we are using the example element. For example, in the conbody of a concept topic.
-
- Posts: 96
- Joined: Wed Feb 09, 2005 8:57 am
Re: WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
In DITA-OT2.x\plugins\org.dita.xhtml\xsl\xslhtml\taskdisplay.xsl, there is a template responsible for generating the default title for example,
As it states, it limits its responsibility to example under taskbody because it's a task label.
For a quick and dirty test, you can remove "*[contains(@class,' task/taskbody ')]/" from that xsl:template/@match, and the task label for example should be generated outside task.
A more clean way would be to implement a similar template in your DITA-OT plugin.
Code: Select all
<xsl:template match="*[contains(@class,' task/taskbody ')]/*[contains(@class,' topic/example ')][not(*[contains(@class,' topic/title ')])]" mode="dita2html:section-heading">
For a quick and dirty test, you can remove "*[contains(@class,' task/taskbody ')]/" from that xsl:template/@match, and the task label for example should be generated outside task.
A more clean way would be to implement a similar template in your DITA-OT plugin.
Re: WebHelp Responsive: Procedure, Example, After Completing This Task, etc. titles missing
Post by Anonymous1 »
Great, this works.
I did the changes in the DITA-OT (not 2.x) folder that we are using.
I didn't know that the example title was exclusive to the taskbody. Doesn't seem that logical to me, since the example element is available in the refbody and conbody as well. Anyway, glad to have it now.
Thank you for your help.
I did the changes in the DITA-OT (not 2.x) folder that we are using.
I didn't know that the example title was exclusive to the taskbody. Doesn't seem that logical to me, since the example element is available in the refbody and conbody as well. Anyway, glad to have it now.
Thank you for your help.
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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