Customizing webhelp in XML Author to remove

Post here questions and problems related to editing and publishing DITA content.
mpeters
Posts: 1
Joined: Thu Nov 01, 2012 10:41 pm

Customizing webhelp in XML Author to remove

Post by mpeters »

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
sorin_ristache
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
susannecm
Posts: 107
Joined: Wed Mar 17, 2010 1:04 pm

Re: Customizing webhelp in XML Author to remove

Post by susannecm »

I was looking for a less intrusive way to remove the footer. Setting the following in my custom stylesheet seems to work:

Code: Select all


div.footer{  
display:none;
}
My own footer uses a different class.

Susanne
sorin_ristache
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:

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
Post Reply