What is XHTML Doclet?
XHTML Doclet is an alternative doclet for Javadoc. In a nutshell, it creates ouptut that is compliant with web standards and structured to allow for flexible styling, which offers enhanced control over output appearance. Javadoc has two stages: (1) parsing the source code and creating a representative data structure, and (2) traversing the data structure and generating the documentation. The javadoc program handles the first stage, then sends data to a doclet (which usually extends com.sun.javadoc.Doclet, like XHTML Doclet does) for the second stage, as described on the Doclet Overview page. The doclet can then generate markup for the documentation in any desired format.