XSL file causing error when stylesheet is included

sasc

New Member
I have a XML file with code like \[code\] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="http://stackoverflow.com/questions/10446611/rss2.xsl" type="text/xsl" media="screen"?> <rss version="2.0"> <channel> <title>TITLE</title> <description>Description</description> <link> some link </link> <copyright>Copyrights 2012, All Rights Reserved</copyright> <item> <title> title 1</title> <description> desc</description> <link> some link </link> </item> </channel> </rss>\[/code\]And an XSL file for this is \[code\]<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" /><xsl:template match="/"> <html> <head> <title>XML RSS Feed</title> <link type="text/css" rel="stylesheet" href="http://stackoverflow.com/questions/10446611/rss_xsl.css" > </head> <body> <h2>XML RSS Feed</h2> <hr /> <div id="content"> <xsl:for-each select="rss/channel/item"> <div class="article"> <h3><a href="http://stackoverflow.com/questions/10446611/{link}" rel="bookmark"><xsl:value-of select="title"/></a></h3> <p><xsl:value-of select="description"/></p> </div> </xsl:for-each> </div></body></html></xsl:template></xsl:stylesheet> \[/code\]The issue is when i comment the stylesheet code then chrome shows the feed. when i include the style the feeds are no more visible. How can this stop showing the feeds. is their some thing wrong with this inclusion of Style for XSL files..
 
Back
Top