Configuring the Search Engine Optimization

A DITA Map WebHelp transformation scenario produces a sitemap.xml file that is used by search engines to aid crawling and indexing mechanisms. A sitemap lists all pages of a WebHelp system and allows web admins to provide additional information about each page, such as the date it was last updated, change frequency, and importance of each page in relation to other pages in your WebHelp deployment.

Important: If the webhelp.sitemap.base.url parameter is specified, the loc element will contain the value of this parameter plus the relative path to the page. If the webhelp.sitemap.base.url parameter is not specified, the loc element will only contain the relative path of the page.
You can also set these additional parameters:
  • webhelp.sitemap.change.frequency - Specifies how frequently the WebHelp pages are likely to change (accepted values are: always, hourly, daily, weekly, monthly, yearly, and never).
  • webhelp.sitemap.priority - Specifies the priority of each page (a value ranging from 0.0 to 1.0).
The structure of the sitemap.xml file looks like this:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>http://www.example.com/topics/introduction.html</loc>
    <lastmod>2014-10-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>http://www.example.com/topics/care.html#care</loc>
    <lastmod>2014-10-24</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
   .  .  .
</urlset>
Each page has a <url> element structure containing additional information, such as:

Creating and Editing the sitemap.xml File

Follow these steps to produce a sitemap.xml file for your WebHelp system, which can then be edited to fine-tune search engine optimization:
  1. Edit the transformation scenario you currently use for obtaining your WebHelp output. This opens the Edit DITA Scenario dialog box.
  2. Open the Parameters tab and set a value for the following parameters:
    • webhelp.sitemap.base.url - The URL of the location where your WebHelp system is deployed.
      Note: This parameter is required for Oxygen XML Author Eclipse plugin to generate the sitemap.xml file.
    • webhelp.sitemap.change.frequency - How frequently the WebHelp pages are likely to change (accepted values are: always, hourly, daily, weekly, monthly, yearly, and never).
    • webhelp.sitemap.priority - The priority of each page (value ranging from 0.0 to 1.0).
  3. Run the transformation scenario.
  4. Look for the sitemap.xml file in the transformation's output folder. Edit the file to fine-tune the parameters of each page, according to your needs.