If it does then you try to use some compare tools to see the difference between your file and the file from the video. For the comparison you could use tools like WinMerge http://winmerge.org or DiffMerge https://sourcegear.com/diffmerge/
Judging by the errormessage, it looks like you've got an HTML <br> tag instead of an XML <br /> tag - an XSLT file is "just" an XML file in this regard, so it has to be valid (well-formed) XML. You can do a search for <br> and replace them with <br /> instead.
(The same holds true if you're generating any <img> tags - they need to be self-closing (<img />) as well.)
I did try the example provided (now) but I get exactly the same error message. I am not sure where to search for and -tags?
Ok so I headed for the Master-template for my current site and it seems to be the culprit. However, i am now facing a new error message and not sure how to go about it.
Error message is: "error on line 256 at column 16: XML declaration allowed only at the start of the document"
RSS feed for Umbraco 4.0.3 - error line 68 column 99
Hello!
I am trying to follow the tutorial on this video:
http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/more-xslt/setting-up-an-rss-feed
.. for creating an rss feed on my Umbraco 4.0.3 site.
However, whereever I try to apply the RSS i get the following error:
This page contains the following errors:
Below is a rendering of the page up to the first error.
This is all any of my pages will output. Any ideas?
Hi eaus,
Did you try to download the finish code example from here http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/more-xslt/setting-up-an-rss-feed bottom of the page, and see if this file works.
If it does then you try to use some compare tools to see the difference between your file and the file from the video. For the comparison you could use tools like WinMerge http://winmerge.org or DiffMerge https://sourcegear.com/diffmerge/
Hope this helps,
/Dennis
Hi eaus,
Judging by the errormessage, it looks like you've got an HTML
<br>
tag instead of an XML<br />
tag - an XSLT file is "just" an XML file in this regard, so it has to be valid (well-formed) XML. You can do a search for <br> and replace them with <br /> instead.(The same holds true if you're generating any
<img>
tags - they need to be self-closing (<img />
) as well.)/Chriztian
I did try the example provided (now) but I get exactly the same error message. I am not sure where to search for
and -tags?
Ok so I headed for the Master-template for my current site and it seems to be the culprit. However, i am now facing a new error message and not sure how to go about it.
Error message is: "error on line 256 at column 16: XML declaration allowed only at the start of the document"
And this is the culprit:
Shouldn't the generated RSS be a simple RSS file with some tags and values? Why is the whole Master-page rendered/needed anyway?
is working on a reply...