Sample Code Sample Code: Localized Helpset


This shows an example helpset file localized for the French (fr) locale.

Note how references to other files in this helpset are based on the locale-based subdirectory name.

<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN" "http://java.sun.com/products/javahelp/helpset_1_0.dtd">

<helpset version="1.0">
  <title>My Tool Help</title>
   <maps>
    <homeID>about_my_tool_html</homeID>
    <mapref location="fr/map.jhm" />
  </maps>

  <view>
    <name>TOC</name>
    <label>Table of Contents</label>
    <type>javax.help.TOCView</type>
    <data>fr/toc.xml</data>
  </view>

  <view>
    <name>Index</name>
    <label>Index</label>
    <type>javax.help.IndexView</type>
    <data>fr/index.xml</data>
  </view>

  <view>
    <name>Search</name>
    <label>Search</label>
    <type>javax.help.SearchView</type>
    <data engine="com.sun.java.help.search.DefaultSearchEngine">fr/SearchData</data>
  </view>

</helpset>