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