PDA

View Full Version : Validation Problems


washy21
07-19-2006, 01:08 PM
HI
I'm trying to validate my XHTML pages. I keep getting the below error. The below error came up when I asked it to validate a brand new Pixelpost Light Template which I haven't touched. I am getting the same errors when I try my own template. Can anyone help me solve the puzzle please.


Line 13 column 67: character "<" is the first character of a delimiter but occurred as data.
..." name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost" />
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.

DikkieBurger
07-19-2006, 01:13 PM
<SITE_TITLE>,<IMAGE_TITLE>

must be:

&lt;SITE_TITLE>,&lt;IMAGE_TITLE>

Only on IMAGE template, on the others you should only add <SITE_TITLE> because <IMAGE_TITLE> doesn't work on other templates.

Please give a link to your photoblog.

washy21
07-19-2006, 05:36 PM
The template is in the very early stages of development so not much to see.

http://www.johnwashington.co.uk/test/

It just seems strange that tit throws up errors from what appears to be standard PP tags.

Then again I am a bit clueless with all this

Best wishes

GeoS
07-20-2006, 06:13 AM
@DikkieBurger:

<SITE_TITLE>,<IMAGE_TITLE>

mustn't be:

&lt;SITE_TITLE>,&lt;IMAGE_TITLE>

because then PP wont process it with correct content.

@washy21:
If you see such error then it means that PP doesnt process this tags. Did you make any change to PP code (PHP files)??