xslt - How could I edit this xsl file so that it works for all browser -


i have 1 one xsl file includes xhtml fragments. need remove becomes browser compatible. tried stops working. here 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 remove xhtml fragments way stops working & prints,'no style information'. wrong 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> 

i see have:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform"  

try fixing syntax!

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform"> 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -