Hi,
For starters your xml sample is not well formed.
I believe you need to change:
Code:
<xsl:template match="ul">
[list]
<xsl:for-each select="li">
<li>
<xsl:value-of select="text()"/>
</li>
</xsl:for-each>
</ul>
to:
Code:
<xsl:template match="ul">
[list]
<xsl:for-each select="li">
<li>
<xsl:apply-templates/>
</li>
</xsl:for-each>
</ul>
</xsl:template>
<xsl:value-of select="text()"/> only will output the text of the element, so <xsl:apply-templates/> will apply all the templates for <li> children.
HTH
Bones