This template generates the basic XHTML elements, i.e. html, head, title, body. It places the contents of the source XML within the XHTML-body by applying the appropriate templates.
The processing of elements of type someElement is very sopisticated. Let us first take a look at the template code:
As you can see the key for understanding this complex template is the XPath expression in the match attribute.
Much more documentation of this highly fascinating template goes here...