How to Add Tweet Button in WebHelp Classic Output

To add a Twitter™ Tweet widget to your WebHelp output, follow these steps:

  1. Go to the Tweet button generator page.
  2. Fill-in the displayed form.
    The Preview and code area displays the code.
  3. Copy the code snippet displayed in the Preview and code area and paste it into a div element inside an XML file called tweet-button.xml.
    Make sure you follow these rules:
    • The file must be well-formed.
    • The code for each script element must be included in an XML comment.
    • The start and end tags for the XML comment must be on a separate line.
    The content of the XML file should look like this:
    <div id="twitter">
      <a href="" class="twitter-share-button">Tweet</a>
          !function (d, s, id) {
          js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location)
     ? 'http': 'https';
          if (! d.getElementById(id)) {
          js = d.createElement(s);
 = id;
          js.src = p + '://';
          fjs.parentNode.insertBefore(js, fjs);
          'script', 'twitter-wjs');
  4. In Oxygen XML Developer plugin, click the Configure Transformation Scenario(s) action from the toolbar.
  5. Select an existing WebHelp transformation scenario (depending on your needs, it may be with or without feedback, or the mobile variant) and click the Duplicate button to open the Edit Scenario dialog box.
  6. Switch to the Parameters tab and edit the webhelp.footer.file parameter to reference the tweet-button.xml file that you created earlier.
  7. Click Ok.
  8. Run the transformation scenario.