logo of blechtrottel.net blechtrottel.net
deutsch

Phase 5

You need not write plugins to call other programs from Phase 5. In many cases simple batch scripts will suffice:

Batch File for XSLT with Instant Saxon

Michael Kay's XSLT processor Saxon is a very good option for XSL transformations from Phase 5. Our batch file calls Saxon and passes it the XML file that is active in Phase 5. According to the XSL sheet referenced in the file the XML code gets transformed and is opened in Phase 5 again. Thus you can easily check the resulting source code for validity and proper formatting.

Version History

Installation

  1. Saxon needs Java to be installed.
  2. Download Saxon and unzip it into a folder of your choice.
  3. Integrate the path to saxon.jar (Saxon), saxon9.jar (Saxon-B) or saxon9he.jar (Saxon-HE) in the folder you chose into the CLASSPATH environment variable.
  4. Download saxonbatch.zip from blechtrottel brodaktschns and unzip it into the plugins folder of Phase 5.
  5. Saxon2HTML.bat per default uses Saxon-B and Saxon-HE. If you want to use Saxon delete the comment (::) in line 6 and put one at the beginning of line 9. You can change the file extension .html after -o "%1" if you wish.
    Beware: If you delete the extension, the original file will be replaced!
    In linee 13 change the path to htmledit.exe.

It is rather easy to write your own files for other transformations based on Saxon2HTML.bat.