Although the general concept was independently discovered, the finer details of this implementation are motivated by the excellent, comprehensive work of Dimitre Novatchev[0]. For those of us who either can't, or don't wish to, abaondon XSLT. [0]: http://conferences.idealliance.org/extreme/html/2006/Novatchev01/EML2006Novatchev01.html