2007-10-09T11:56:21Z. Updated to add encoding to input file. Output XML remains in utf-8 encoding
This is a a piece of code called uphill, which takes very simple markup and produces XML, using Java
This is the java source for java 1.6, including some java-docs, as a zip file.
This is the java source for java 1.5, including some java-docs, as a zip file. Includes the jar file
2007-10-08T07:58:35Z. Updated to utilize XOM and Java 1.6. Then updated again to utilise java 1.5, rev 13. Separeate version
The approach is to split input into blocks using line breaks. Inlines are only marked up with acronyms. The markup is defined as per the state file. Full javadocs are provided, as is the source and a copy of the library used xom from ERH. The most recent version is available at his website. This version of Uphill is built with version xom-1.2b1.jar.
Command line usage (use appropriate jar file)
$java -cp uphill.jar:lib/xom-1.2b1.jar uphill.Uphill
or
$java -jar uphill.jar
The shorter usage assumes that the xom jar file is available in the 'lib' directory.
Uphill 1.3 from Dave Pawson
Usage: java Uphill [options] {param=value}...
Options:
-a filename Take Acronyms from named file
-o filename Send output to named file
-i filename Take text input from named file
-s filename State machine input from named file
-t Display version information
-e encoding Input file encoding (defaults to utf-8)
-? Display this message
An example acronyms file is provided in the resources directory. An example state file is provided in the resources directory.