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