3. Compiling and testing the sample stylesheet extensions

  1. Compile StyleSheetExtension.java, EmphasisStyleSpecs.java, OrderedListObserver.java, SmileyInfo.java, PassiveSmiley.java and Smiley.java by running ant in the samples/email/ directory.

    This command will also archive the compiled code in samples/email/email_config/email.jar.

  2. Directory samples/email/email_config/ contains an XXE configuration for the email document class.

    This directory contains:

    email.xxe

    The XXE configuration.

    email.xsd

    The XML schema used to model an email message.

    email.css, attachment*.png

    The CSS stylesheet (and its resources) used to style an email message.

    email_passive_smiley.css

    An alternate CSS stylesheet.

    template.email

    A template for creating new email messages.

    email.jar

    Custom code. In order to tell XXE to load this jar file, simply copy it to one of the directories scanned by XXE at startup time (e.g. XXE_user_preferences_dir/addon/)

    Copy the whole directory to XXE_user_preferences_dir/addon/. XXE user preferences directory is:

    • $HOME/.xxe10/ on Linux.

    • $HOME/Library/Application Support/XMLmind/XMLEditor10/ on the Mac.

    • %APPDATA%\XMLmind\XMLEditor10\ on Windows. Example: C:\Users\john\AppData\Roaming\XMLmind\XMLEditor10\.

      If you cannot see the "AppData" directory using Microsoft Windows File Manager, turn on Tools>Folder Options>View>File and Folders>Show hidden files and folders.

  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. Use FileNew and select Email Message/From me to you to create a new email message.

    Or open the sample email message contained in samples/tests/in/sample.email.