Convert XML to a UL Tree Using XSLT

I spent a good 30 minutes hunting for this on the web this afternoon. Eventually I just wrote it myself.

The following XSLT will convert XML to a tree of <ul>and <li> items. The element names will be rendered within <strong> tags.

<xsl:stylesheet xmlns:xsl="" version="1.0">
<xsl:template match="/">
<ul id="certificateData">
<xsl:apply-templates select="./*"/>
<xsl:template match="*">
<li class="closed">
<xsl:value-of select="local-name()"/>
<xsl:when test="count(./*) > 0">
<xsl:apply-templates select="./*" />
<xsl:value-of select="."/>