
By Gunny-1 on
Trying to add a stylesheet to rss.xml feed. In node.module, i have the following code,
...
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$output = "<?xml-stylesheet type=\"text\/css\" href="rss.css"?>\n";
...
rss.css is located in drupal root directory. i have added '\' to text/css to avoid parse error.
Still i am getting parse error here. What's wrong here ?
Comments
PHP and <?
PHP can get a little confused. Try this...
No, again parse same error.
No, again parse same error.
The xml version line in the initial post is taken from node.module is syntatically correct. The error appeared when the xml-stylesheet got added. Simple syntax can sometimes drive you crazy.
Not sure, but here is how
Not sure, but here is how Feedburner uses stylesheets...
fixed. it should look as
fixed. it should look as given below,