Menu

Home

OmniMark Code
Attachments
html-pipeline-kit.png (377956 bytes)

The HTML transforms project is a library of HTML and XHTML transforms written in OmniMark. Different transforms can be combined together into a pipeline. The test directory contains the OmniMark source code for several example pipelines, while pipeline.xom in the root directory constructs any of the possible pipelines at run time, depending on its command-line options.

The library currently includes the following transforms:

strictify converts the transitional HTML 4.01 or XHTML 1.0 into the strict DTD
classify-by-stylesheet collects the styles into a stylesheet and replaces the style attributes by class attributes
html-to-xhtml converts HTML 4.01 to XHTML 1.0
xhtml-to-html converts XHTML 1.0 to HTML 4.01
strict-HTML-validator validates the markup against the HTML 4.01 Strict DTD
strict-XHTML-validator validates the markup against the XHTML 1.0 Strict DTD
transitional-HTML-validator validates the markup against the HTML 4.01 Transitional DTD
transitional-XHTML-validator validates the markup against the XHTML 1.0 Transitional DTD

OmniMark version 10.0 or newer is required for compiling the source code.

The compiled executables of pipeline.xom are provided for Windows and Linux. The executable takes the input HTML or XHTML filename as the command line argument and outputs the transformed HTML or XHTML on the standard output. The following options control which transformations should be applied to the input:

--input-format(HTML | XHTML)
--output-format(HTML | XHTML)
--stylesheet<filename>
--strictify
--validate

The -l command-line option should also be used to specify the location of the standard HTML and XHTML DTD files:

-l<directory with HTML/XHTML DTDs>

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.