Input XSLT Output HTML

More Complicated HTML Page

This example builds on EG302 to improve the XSLT script, but doesn't change the output much.

Because the <style>-generating section is down “out of the way”, the style information has been expanding to improve the rendering of the output.

Regardless of the visual change, the actual HTML nearly identical to the previous example. (A few small changes have been made to keep it interesting.)

The biggest change in the XSLT script is moving the HTML <head> Element and the Banner and Trailer sections into sub templates.

The main template calls these sub templates explicitly by name using xsl:call-template, rather than by selection/matching with xsl:apply-templates.

The other significant change in the XSLT is that the large sub template that processed the <MessageData> Element now uses three xsl:apply-templates to hand off the work to three “sub sub” templates.