Conversion of XML ALTO files to HTML
This batch script converts OCR ALTO files to HTML. It also renders the tags (logical, layout, semantic, etc.) which were introduced in ALTO v2.1 format. See https://www.loc.gov/standards/alto/
The script needs xalan-java.
A sample document is stored in the "DOCS" folder.
Two DOS shell scripts :
- ALTO2HTML.bat
- xslt.cmd
One XSLT stylesheet:
- ALTO2HTML.xsl
The XSLT is runned with Xalan-Java. Path to the Java binary must be set in xslt.cmd. For each document stored in the DOCS folder, all the ALTO files found in the X folder are processed. The HTML format is generated in a "HTML" folder and rendered with a CSS stylesheet.
- Open a DOS terminal.
- Change dir to the folder containing the DOCS folder
-
ALTO2HTML.bat DOCS