WH2FO Application

 

 

Table of Content:

 

 

WH2FO Application. 1

What is it ?. 2

How does it work ?. 2

How to …... 3

Executables. 3

How to run it using the MS Virtual Machine. 3

How to run it using the JRE. 3

How to run in the Linux/Unix Environment 3

Results. 4

Execution options. 4

How to obtain the XSL-FO file. 4

Implemented Features. 5

Versions. 6

Downloads. 7

 


What is it ?

WH2FO is a Java application which processes an HTML output created with Word 2000, and transforms it into an XML content file and an XSL style-sheet file. From these files, a standard XSLT processor may be used to obtain a file containing only XSL-FO mark-up. You can also apply a style-sheet that converts the XML back into HTML discarding all the extra mark-up added by Word. Using an XSL-FO rendering engine, such as FOP, you can also render your document into PDF.

How does it work ?

WH2FO is able to separate content from style into an HTML file generated using Word 2000. When the input has been processed you will get an XML file containing the content and an XSL-T file containing the “rules” to convert it into an XSL-FO document.

The separation between content and style gives you the possibility to re-use the style information and the possibility to re-purpose the content for different uses.

WH2FO also gives a quick way to generate XML content without knowing nothing about tags.

 

 


How to …

Executables

The following executable files are included in the distribution:

Microsoft Windows Specific files

Unix Specific files

How to run it using the MS Virtual Machine

For Microsoft Windows users it is possible to run the compiled code using a batch file that calls the MS Virtual Machine

The MS VM (jview.exe) is normally installed with IE 5.x and can execute java code without downloading a JRE

How to run it using the JRE

It is possible to execute the Java code directly on any OS.

The Java code must be executed from a Java 1.x runtime environment (JRE) as follows:

Windows users just use the wh2fo.bat : wh2fo htm-file-name [options]

All users:

How to run in the Linux/Unix Environment

For Linux/Unix users it is possible to run the compiled code using a shell script file that calls the java run-time engine (jdk1.1)

  1. run dosunix wh2fo.sh
  2. run chmod 744 wh2fo.sh
  3. ./wh2fo.sh htm-file-name [options]

Results

The application will automatically generate 3 files using the same name as the input file:

  1. a file for the content htm-file-name.xml
  2. a file for the stylesheet htm-file-name.xsl
  3. a file for the attributes (style-sets) htm-file-nameAtts.xsl

Execution options

The possible WH2FO execution options are:

How to obtain the XSL-FO file

To create a XSL-FO file you must process the XML and XSL file using a XSLT processor, for instance you can use XT (by James Clark) that provides both a jar and a Windows executable

 


Implemented Features

Pagination and Layout

Text

Lists

Images

Tables

Links

Footnotes

Table Of Content


Versions

 


Downloads

 

File

Version

Type

Size

WH2FO Distribution

0.3.0

Zip

435KB

Examples

0.2.0

Zip

4.4MB

Java Docs

0.3.0

Zip

506KB

UML Diagrams

0.3.0

Zip

214KB

Parser Sequence State

0.3.0

Zip

120KB