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
- Version 2.0 (August 2010)
uses Saxon (XSLT 1.0), Saxon-B und Saxon-HE (beide XSLT 2.0)
(Instant Saxon works only up to Windows XP) - Version 1.0 (January 2006)
first version based on Instant Saxon
Installation
- Saxon needs Java to be installed.
- Download Saxon and unzip it into a folder of your choice.
- 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.
- Download saxonbatch.zip from blechtrottel brodaktschns and unzip it into the plugins folder of Phase 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.




