You can start by writing the desired HTML and the javascript.
When you know what your html should look like, you can write the xsl to transform the xml into that html.
I once made a complete treeview that way, and the headaches were in the js & html, when I got that right the xsl was relatively simple.