#2
Motivation - Producing HTML or XHTML
HTML is one of the inherent outputs specified by the XSLT recommendation.
Producing HTML is really just an XML-to-XML transformation.
The serializer of the XSLT processor takes care of the HTML specifics.