Phase 5
You need not write plugins to call other programs from Phase 5. In many cases simple batch scripts will suffice. This is our array:
Batch File for utf-8 Unicode in Phase 5
So far, Phase 5 does not natively support unicode. This does not necessarily mean that you cannot use it if you have to code a project in utf-8 and other unsupported encodings. It is not absolutely impossible to use utf-8 in Phase 5. From GNU there is a useful conversion tool named iconv, which is very popular in both the Unix and the Perl parts of the world. There is a corresponding extension for PHP and even Windows gets a version.
These steps are necessary to use iconv from within Phase 5:
- Download iconv and unzip it into a folder of your choice
- Download phase5utf.zip from blechtrottel brodaktschns and unzip it into the plugins folder
- Change the paths to iconv.exe and htmledit.exe in both iso2utf.bat and utf2iso.bat and replace the extension after "%1" to your personal liking.
Warning: If you delete the extension completely, the original file will be replaced!
Now you can open a file in Phase 5 and convert it via the Tools menu. Following the batch files by blechtrottel brodaktschns anyone can easily create their own for other encodings, as long as they are supported by iconv. If you have several files place them in a subfolder.
Batch File for XSLT with Instant Saxon
Michael Kay's XSLT processor Instant Saxon has not been developed any further after version 6.5.3 (contrary to its Java sibling Saxon), still it is a very good option for XSL transformations from Phase 5. Our batch file calls Instant Saxon and passes it the XML file that is active in Phase 5. According to the XSL sheet referenced in the XML the file gets transformed and is opened in Phase 5 again. Thus you can easily check the resulting source code for validity and proper formatting.
Installation follows the previous examples:
- Download Instant Saxon and unzip it into a folder of your choice
- Download saxonbatch.zip from blechtrottel brodaktschns and unzip it into the plugins folder of Phase 5
- In Saxon2HTML.bat, change the paths to saxon.exe and htmledit.exe and add your very own extension after the "%1", if you want to. Remember: If you delete the extension, the original file will be replaced!
It is rather easy to write your own files for other transformations based on Saxon2HTML.bat.




