Separate Form And Functionality

HTML is hard to test

Instead of going from XML straight to HTML

...go from XML -> agnostic format -> HTML

Much easier to test when only one of the input/output pair is formatted.

...and you'll have improved the flexibility of your code.

| toc |