private void dtd(DTDToken token)
{
// first DTD encountered wins.
if (_dtdAdded) return;
PageElement element = _pageElementFactory.newDTDElement(token);
// since rendering via the markup writer is to the document tree,
// we don't really care where this gets placed in the tree; the
// DTDPageElement will set the dtd of the document directly, rather than
// writing anything to the markup writer
_page.getRootElement().addToTemplate(element);