Adding a Favicon in WebHelp Systems

You can add a custom favicon to your WebHelp system by simply editing a template in an XSL file. To add a favicon, follow these steps:

  1. Edit the following XSL file for DITA or DocBook WebHelp systems:
    1. For DITA WebHelp systems, edit the following file: DITA_OT_DIR\plugins\com.oxygenxml.webhelp\xsl\createMainFiles.xsl.
    2. For DocBook WebHelp system, edit the following file: [OXYGEN_DIR]\frameworks\docbook\xsl\com.oxygenxml.webhelp\xsl\createMainFiles.xsl.
  2. Locate the following template in the XSL file: <xsl:template name-"create-toc-common-file">.
  3. Add two link elements inside the head element, as in the following example:
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> 
  4. Save your changes to the file.
  5. Re-run your WebHelp system transformation scenario.