http://svn.php.net/viewvc/phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php?view=markup#l211