2. Compiling and testing the sample validation hook

Compile the sample validate validation hook by executing ant (see build.xml) in samples/check_links/. The build creates checklinks.jar. Then test the validation hook by proceeding as follows:

  1. Copy checklinks.incl and checklinks.jar to XXE_install_directory/addon/config/xhtml/.

  2. Include checklinks.incl anywhere in XXE_install_directory/addon/config/xhtml/xhtml_strict.xxe by adding the following include element in XMLmind XML Editor - Configuration and Deployment:

    <include location="checklinks.incl" />
  3. Delete directory XXE_user_preferences_dir/cache/ (which is equivalent to clearing the Quick Start cache in XMLmind XML Editor - Online Help).

  4. Restart XXE.

  5. Open samples/tests/in/sample2.html int XXE and examine all the problems found by the validation hook for this file (click on the Validity tool tab to display the semantic warnings).

    Figure 5.1. Errors [1], [3], [5], [6] are reported by the sample validation hook. (Errors [2], [4] are reported by the stock validation engine.)
    Errors [1], [3], [5], [6] are reported by the sample validation hook. (Errors [2], [4] are reported by the stock validation engine.)