Adding Outputclass to Topic Head
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 90
- Joined: Tue Mar 31, 2015 10:43 pm
Adding Outputclass to Topic Head
I would like to add an outputclass to certain topic heads in my ditamap. My reason is that I would like to apply a different style to the topic head's title that have this outputclass assigned.
I have tried to add an outputclass to the topichead element as well as to the navtitle element of the topichead topicmeta, but in the html the outputclass is not retained.
I am using Oxygen 18.1 with the responsive webhelp.
I have tried to add an outputclass to the topichead element as well as to the navtitle element of the topichead topicmeta, but in the html the outputclass is not retained.
I am using Oxygen 18.1 with the responsive webhelp.
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Adding Outputclass to Topic Head
Post by bogdan_cercelaru »
Hello,
I've tested with Oxygen v18.1 by adding the following code to the "flowers.ditamap" sample:
In the generated "index.html" file I've found the following HTML fragment:
This fragment appear in the "wh_main_page_toc" and in the "wh_top_menu" sections.
If it doesn't work for you, please send us an email with a sample DITA Map at support@oxygenxml.com.
Regards,
Bogdan
I've tested with Oxygen v18.1 by adding the following code to the "flowers.ditamap" sample:
Code: Select all
<topichead navtitle="Care and Preparation" outputclass="my_head_class">
<topicref href="topics/care.dita" />
</topichead>
Code: Select all
<span class="my_head_class"><a href="topics/care.html">Care and Preparation</a></span>
If it doesn't work for you, please send us an email with a sample DITA Map at support@oxygenxml.com.
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Adding Outputclass to Topic Head
Post by bogdan_cercelaru »
Hello,
To obtain the outputclass in the "h1" of ".wh_topic_content body", you have to set the outputclass attribute to the "<title/>" element in the corresponding DITA topic.
I've registered an issue in our issue tracking system so that the outputclass to be added in the ".wh_content_area > .wh_side_toc" when the outputclass attribute is set to the topichead element.
Regards,
Bogdan
To obtain the outputclass in the "h1" of ".wh_topic_content body", you have to set the outputclass attribute to the "<title/>" element in the corresponding DITA topic.
I've registered an issue in our issue tracking system so that the outputclass to be added in the ".wh_content_area > .wh_side_toc" when the outputclass attribute is set to the topichead element.
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
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