Developing new stylesheets can be a chore. So why not let XSLT take the load?
This article shows how to easily check the coverage of your XSLT and create skeleton
Shortening XSLT Stylesheets
XSLT is often considered to be too verbose. As a stylesheet's code grows, it
tends to be unreadable. This is not a fate stylesheet authors have to accept. This
proposes some ways of shortening stylesheets without loss of functionality, including
use of XSLT 2.0 user defined functions.