Customizing webhelp in XML Author to remove
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 1
- Joined: Thu Nov 01, 2012 10:41 pm
Customizing webhelp in XML Author to remove
Hi,
The default DITA Map Webhelp transformation inserts the text "WebHelp output generated by <logo> XML Author" in the footer of each content file in the main frame. The default transformation also inserts header text that references default CSS files.
I removed the <div class="footer"> template in the dita2webhelpImpl.xsl file, which should have removed the "WebHelp output generated by <logo> XML Author" footer text. After closing and re-opening XML Author, the DITA Map Webhelp transformation still inserts the text.
Also, I removed the following node from the dita2webhelpImpl.xsl file, which should have at least removed one of the CSS file references from the content headers in the output.
<link rel="stylesheet" type="text/css" href="{$PATH2PROJ}assets/webhelp_topic.css"/><xsl:value-of select="$newline"/>
But the transformation still inserts the CSS reference. The default CSS file takes precedence over my own CSS file, which I reference using the args.hdf parameter.
How could I customize the webhelp transformation to remove the default CSS references and footer text?
Thanks,
Mark
The default DITA Map Webhelp transformation inserts the text "WebHelp output generated by <logo> XML Author" in the footer of each content file in the main frame. The default transformation also inserts header text that references default CSS files.
I removed the <div class="footer"> template in the dita2webhelpImpl.xsl file, which should have removed the "WebHelp output generated by <logo> XML Author" footer text. After closing and re-opening XML Author, the DITA Map Webhelp transformation still inserts the text.
Also, I removed the following node from the dita2webhelpImpl.xsl file, which should have at least removed one of the CSS file references from the content headers in the output.
<link rel="stylesheet" type="text/css" href="{$PATH2PROJ}assets/webhelp_topic.css"/><xsl:value-of select="$newline"/>
But the transformation still inserts the CSS reference. The default CSS file takes precedence over my own CSS file, which I reference using the args.hdf parameter.
How could I customize the webhelp transformation to remove the default CSS references and footer text?
Thanks,
Mark
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Customizing webhelp in XML Author to remove
Post by sorin_ristache »
Hi Mark,
That is exactly how you remove the footer text and the default CSS reference from each output page! The only explanation I can think of for your failure is editing the dita2webhelpImpl.xsl file in the wrong location, possibly in an installation directory of a different version of Oxygen, for example running the DITA Map WebHelp transform in Oxygen version 14.1 but editing the dita2webhelpImpl.xsl file in the install version of Oxygen version 14.0 or version 13.2.
What is the install directory of the Oxygen version that runs the transform (in the Help -> About dialog, the System Properties tab, the user.dir property) and what is the file path of the edited dita2webhelpImpl.xsl? Did you save the dita2webhelpImpl.xsl file after removing the code for the footer div section and for the default CSS <link> element? Please note that on Windows 7 and Vista you cannot edit and save the file in the Oxygen application without any save error if the Oxygen install directory is the default one, that is inside the Program Files directory, because all files are read-only in the Program Files directory.
Regards,
Sorin
That is exactly how you remove the footer text and the default CSS reference from each output page! The only explanation I can think of for your failure is editing the dita2webhelpImpl.xsl file in the wrong location, possibly in an installation directory of a different version of Oxygen, for example running the DITA Map WebHelp transform in Oxygen version 14.1 but editing the dita2webhelpImpl.xsl file in the install version of Oxygen version 14.0 or version 13.2.
What is the install directory of the Oxygen version that runs the transform (in the Help -> About dialog, the System Properties tab, the user.dir property) and what is the file path of the edited dita2webhelpImpl.xsl? Did you save the dita2webhelpImpl.xsl file after removing the code for the footer div section and for the default CSS <link> element? Please note that on Windows 7 and Vista you cannot edit and save the file in the Oxygen application without any save error if the Oxygen install directory is the default one, that is inside the Program Files directory, because all files are read-only in the Program Files directory.
Regards,
Sorin
-
- Posts: 114
- Joined: Wed Mar 17, 2010 1:04 pm
Re: Customizing webhelp in XML Author to remove
I was looking for a less intrusive way to remove the footer. Setting the following in my custom stylesheet seems to work:
My own footer uses a different class.
Susanne
Code: Select all
div.footer{
display:none;
}
Susanne
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Customizing webhelp in XML Author to remove
Post by sorin_ristache »
Hello,
Yes, that is an alternative way of hiding the default footer, because it is wrapped in a div element with the class="footer" attribute:
Regards,
Sorin
Yes, that is an alternative way of hiding the default footer, because it is wrapped in a div element with the class="footer" attribute:
Code: Select all
<div class="footer">WebHelp output generated by<a href="http://www.oxygenxml.com" target="_blank"><span class="oXygenLogo"><img src="../oxygen-webhelp/resources/img/LogoOxygen100x22.png" alt="Oxygen"> </span><span class="xmlauthor">XML Author</span></a>.
</div>
Regards,
Sorin
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