Not sure where all the information in your output is supposed to come from, but generating the leaf elements seems to be:
<xsl:template match="SITE_INFORMATION/*">
<leaf>
<attribute name="name" value="{name()}"/>
<attribute name="value" value="{.}"/>
</leaf>
</xsl:template>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference