Change Domino’s DOCTYPE

Maybe everybody already knows … except me.
You can change the doctype ( from at least version 6.5.3 on ) by setting the DominoCompleteDoctype environment variable in notes.ini. It has 3 different values:

0 = <DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”\\>
1 = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “”>
2 = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “”>

So far, so good. But what, if you want to have

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”> ??

As of Domino 7.0.2 there is a new field that allows you to set the doctype on a form basis. Just add a computed for display field called $$HTMLFrontMatter.