This article explains how to generate an XHTML document using an XSL Transform.

XSL Transform for build XHTML

Assume we want transform following XML document

An XSL Transform starts from XML input and produces output in several  formats. To get XHTML output we’ll need to define the correct output format at the top of the document.

The transform is quite simple, and here, there is an image showing the output result.


You can get the source from my Git folder:,