I have one one xsl file that includes xhtml fragments. I need to remove those so that it becomes browser compatible. I tried but then it stops working. Here is original xsl:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/xhtml">
<xsl:output omit-xml-declaration="yes" />
<xsl:template match="messages">
<html:ul>
<xsl:apply-templates select="message" />
</html:ul>
</xsl:template>
<xsl:template match="message[message]">
<html:li>message <xsl:value-of select="@emp_msg" /></html:li>
<html:ul>
<xsl:apply-templates select="message" />
</html:ul>
</xsl:template>
<xsl:template match="message">
<html:li>message <xsl:value-of select="@emp_msg" /></html:li>
<xsl:apply-templates select="message" />
</xsl:template>
</xsl:stylesheet>
I tried to remove xhtml fragments this way but it stops working & prints,'No style information'. What wrong I did:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" />
<xsl:template match="messages">
<ul>
<xsl:apply-templates select="message" />
</ul>
</xsl:template>
<xsl:template match="message[message]">
<li>message <xsl:value-of select="@emp_msg" /></li>
<ul>
<xsl:apply-templates select="message" />
</ul>
</xsl:template>
<xsl:template match="message">
<li>message <xsl:value-of select="@emp_msg" /></li>
<xsl:apply-templates select="message" />
</xsl:template>
</xsl:stylesheet>