Define some comparison and boolean logic functions.
Replace complex custom DocBook publishing script with a simple xsltproc call.
Implement the `if` function.