Like nearly every command tool herold comes with a set of command line options to control the behaviour of the transformation:
- --in, -i
Specifies the HTML input file.
- --out, -o
Specifies the DocBook XML destination file.
- --help, -h
Prints a help page on the console.
- --destination-encoding, -d
Specifies the encoding of the generated DocBook XML files.
- --exclude, -e
Specifies a xpath expression. All elements of the html source, which match this expression are excluded from the transformation. This option can be used multiple times.
- --source-encoding, -s
Specifies the encoding of the HTML source files, such as ISO-8859-1.
- --root-element, -r
The root element of the document. Possible values are: book, article and reference. The default value for this option is 'article'
- --docbook-script-path
The path to the grovvy scripts for HTML customization.
- --html-script-path
The path to the grovvy scripts for DocBook customization.
- --root-element, -r
The root element of the document. Possible values are: book, article and reference. The default value for this option is 'article'
- --title, -t
The title for the resulting document.
- --decompose-tables, -T
Decomposes the tables from the HTML code into single paragraphs. This can be useful, if a document contains a lot of tables for formatting reasons.
- --version, -V
Displays the version of herold.