PDA

View Full Version : Problem with ATOM feeds


dan1el
08-18-2005, 07:24 PM
There is an XML parsing error here:
http://www.dan1el.net/photoblog/?x=atom

How to fix?

Connie
08-18-2005, 07:33 PM
Daniel,

the problem is not with ATOM, the reason is your IMG-code and RSS and ATOM are very picky with special characters:

<img id="image" src="images/20050816014243_die_seagull.jpg" alt="Die, Seagull" title="Die, Seagull | August 17th 2005 - 18:00 | Category: <a href='/photoblog/index.php?x=browse&amp;category=12'>Animals /</a> &nbsp;" />

what is this code? A HREF-LINK inside a image-title??????

if you fix that I am sure your FEED will validate better, CSS as well

dan1el
08-18-2005, 07:47 PM
From my template:
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="image" src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE> | <IMAGE_DATETIME> | <IMAGE_CATEGORY>" /></a>

dan1el
08-18-2005, 07:51 PM
Okay, the problem was that <IMAGE_CATEGORY> had links. Still, that is irrelevant.

The PROBLEM is an XML-parsing error:
title='A broken arm doesn't stop me'

the ' in doesn't is making problems. Perhaphs I should use " in the code?

Edit: it seemed that my fix (using " instead of ') worked. I consider this as a bug, since you cannot have ' in your image titles.

Connie
08-18-2005, 07:57 PM
Ah, I see, which PP version are you using?

This error is fixed in the next version, Apostrophe in titles etc.

so, in the moment I wouldn't use this character or mask it

dan1el
08-18-2005, 07:58 PM
Im using PP 1.4.2.

GeoS
08-18-2005, 10:07 PM
So until you use 1.5 beta stop adding special chars into titles :P

ranko
05-20-2006, 01:28 AM
I am using pp1.5RC (1? i think) and recently experienced this "apostrophe in titles" issue--not in the page displaying the fullsize image, but in the archive page (browse_template) where the title appeared: the page and thumbnails show up fine, no problems, but it will not validate. something to do with the way the <THUMBNAILS_WHOLE_PAGED> tag renders the titles (with single quotation marks)?


<a href='index.php?showimage=46'><img src='thumbnails/thumb_20060514101129_shang.jpg' alt='it's a very deep sea' title='it's a very deep sea' class='thumbnails' /></a>

Not a big deal, fixed by simply removing the offending "it's" but when I came across this discussion here I thought you guys might want to know. Apologies if this is the wrong section of the forum...

Connie
05-21-2006, 09:00 AM
Ranko,

thanks. We must check how the Addon for paged archives escapes the title-text.

thanks for the info!