Jens Stavnstrup wrote:
> The saxon extension seems to be the most elegant method, if only I could
> figure out how to extract the file date of my source tree - if that is
> possible at all ?

Yes, this is possible. See
http://saxon.sourceforge.net/saxon6.5.4/extensions.html#systemid

The author of Saxon, Michael Kay, says: "The source code of these
methods, which in most cases is extremely simple, can be used as an
example for writing other user extension functions. It is found in class
com.icl.saxon.functions.Extensions".

Once you have created a jar containing you extension, simply copy it in
any of the directories/sub-directories scanned by XXE during its
startup. For example, XXE_user_preferences_dir/addon/my_saxon_extensions/.

XXE_user_preferences_dir is:

    * $HOME/.xxe/ on Unix,

    * %SystemDrive%\Documents and Settings\%USERNAME%\Application
Data\XMLmind\XMLeditor\ on Windows 2000/XP,

    * %SystemDrive%\winnt\Profiles\%USERNAME%\Application
Data\XMLmind\XMLeditor\ on Windows NT.

---
PS: XXE V3.0 currently uses Saxon 6.5.3. V3.0 Patch1 (or V3.1) will use
Saxon 6.5.4 but this should not be a problem.

Reply via email to