I have installed SS on a client site and I am in the process of implementing the design I have created for the site. I thought I had followed the SS conventions correctly, but it does not turn out right at the moment. I'm getting the following error with a broken design:
This page contains the following errors:
error on line 51 at column 11: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
I have checked my Page.ss files, but see nothing wrong.
Hm, looks as if it was caused by an error in the syntax; "&Layout" for "$Layout." It's just that I spotted it, fixed it, and it was still the same. So, I left it, and the day after, when going back to work on it, it worked. Strange.
It means you have a malformed entity in your (X)HTML. Example for entities: " & « etc.
It could be in your template (search .ss files), or maybe you have an ampersand in a Title field and you forgot to escape it? To correctly escape textfields like Title use: $Title.XML in your template (and $Title.ATT in attributes).
If you get the problem when using pagination, there's most likely an error in the pagination template.
Just out of curiosity, do you have a <?xml version="1.0" encoding="UTF-8"?> header in your source code (Page.ss)? If yes, remove it.
In layout template ChartPage.ss I write $ShowChart to display that value. But I get that very same error you are talking here about.
I can write $ShowChart.XML, but then all my '<', '>' and other symbols are escaped. I am a newbie to SilverSprite, so I am kind of surprised that I can't return a string using controller's method if that string has some special symbols. What would be your advice about that?