Checks the default DTD templates >>>>templates/test.tpl <?xml version="1.0" ?> <opt:root> <opt:dtd template="html40" /> </opt:root> >>>>expected.txt OUTPUT >>>>result.txt <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">