Webhelp output - removing horizontal line above the footer
Oxygen general issues.
-
- Posts: 30
- Joined: Mon Jan 27, 2014 11:19 am
Webhelp output - removing horizontal line above the footer
In the webhelp output there is a fine grey horizontal line that appears at the bottom of each page (and above the footer if there is one). It is a div with a border-top:
I'd appreciate if you could tell me where this comes from and how to get rid of it.
Regards
Rodrik
Code: Select all
<div style="border-top-color: rgb(238, 238, 238); border-top-width: 1px; border-top-style: solid;"><!-- --></div>
Regards
Rodrik
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Webhelp output - removing horizontal line above the foot
Post by sorin_ristache »
Hello,
What Oxygen version do you use? In version 15.2 the horizontal line is created by the element
and you remove this element by commenting out or removing the following line in file [Oxygen-15.2-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\css\webhelp_topic.css:
and also the following line in file [Oxygen-15.2-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\skins\desktop\toc_driver.js:
Starting with the next version of Oxygen we will make that customization easier by adding a class attribute to this div element so that a simple display:none added in the CSS file (or even in a custom CSS file set in the args.css parameter of the DITA transformation) will be enough for hiding it.
Regards,
Sorin
What Oxygen version do you use? In version 15.2 the horizontal line is created by the element
Code: Select all
<div style="border-top: 1px solid #EEE;"><!-- --></div>
Code: Select all
border-top:1px solid #eee;
Code: Select all
$('#frm').contents().find('.navfooter').before('<div style="border-top: 1px solid #EEE;"><!-- --></div>').hide();
Regards,
Sorin
-
- Posts: 30
- Joined: Mon Jan 27, 2014 11:19 am
Re: Webhelp output - removing horizontal line above the foot
Thank you very much for your help -- I am using 15.2. Adding a class attribute would help -- I've been trying to restrict my customisation of the output to CSS changes as far as possible.
Another one that you might want to take a look at is the <div> that encloses individual related links, which also has no class attribute.
Regards
Rodrik
Another one that you might want to take a look at is the <div> that encloses individual related links, which also has no class attribute.
Regards
Rodrik
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Webhelp output - removing horizontal line above the foot
Post by sorin_ristache »
Hi Rodrik,
We will also add a class attribute on the <div> element of each individual related link. You can implement that in version 15.2 by adding the following template in the file [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\fixup.xsl:
Regards,
Sorin
We will also add a class attribute on the <div> element of each individual related link. You can implement that in version 15.2 by adding the following template in the file [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\fixup.xsl:
Code: Select all
<xsl:template match="//*[contains(@class,'relinfo')]/div
| //*[contains(@class,'linklist')]/div"
mode="fixup_desktop">
<xsl:copy>
<xsl:apply-templates select="@*" mode="fixup_desktop"/>
<xsl:choose>
<xsl:when test="@class">
<xsl:attribute name="class"><xsl:value-of select="concat(@class, ' related_link')"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">related_link</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates mode="fixup_desktop"/>
</xsl:copy>
</xsl:template>
Regards,
Sorin
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