Simple Machines Community Forum

General Community => Site Comments, Issues and Concerns => Topic started by: SparkieGeek on February 05, 2004, 01:39:21 PM

Title: RSS bug
Post by: SparkieGeek on February 05, 2004, 01:39:21 PM
http://www.simplemachines.org/community/index.php?action=.xml&type=rss

Errors in Win/IE6 and Moz FB 0.7+

QuoteXML Parsing Error: undefined entity
Location: http://www.simplemachines.org/community/index.php?action=.xml&type=rss
Line Number 72, Column 12:         <author>&shy; &ordf;cf</author>

The hint arrow points at the &shy; ...
Title: Re: RSS bug
Post by: [Unknown] on February 05, 2004, 01:43:09 PM
Well, the problem is xml doesn't use any predefined entities... (except the four main ones.) know of any DTDs I could use to get them?

-[Unknown]
Title: Re: RSS bug
Post by: SparkieGeek on February 05, 2004, 01:53:32 PM
Well the way I see it, you'd have to write a DTD which cross-references &shy; with something like ALT text...
Title: Re: RSS bug
Post by: [Unknown] on February 05, 2004, 02:15:07 PM
&shy; is just another standard HTML entity.  I don't see why I should have to write a DTD for standard entities... it's not something the feed is doing, is part of the name of the member. (if you look at the source.)

-[Unknown]
Title: Re: RSS bug
Post by: SparkieGeek on February 05, 2004, 05:16:18 PM
Quote from: [Unknown] on February 05, 2004, 02:15:07 PM
&shy; is just another standard HTML entity.  I don't see why I should have to write a DTD for standard entities... it's not something the feed is doing, is part of the name of the member. (if you look at the source.)

-[Unknown]

Sorry got confused there. I didn't realise what was going on, cos I couldn't view the source properly.

OK so &shy; is an entity in HTML, but isn't included in the XML standard. The way i see it you have two choices:

1. Switch the HTML entities that aren't in XML (here's a list of ones that are (http://www.w3.org/TR/2004/REC-xml-20040204/#sec-predefined-ent)) to there ASCII/Unicode equivalents (look down the bottom of the page (http://www.bbsinc.com/iso8859.html))
2. Find or write a DOCTYPE to do the same thing...

Should RSS2 have a DOCTYPE? I'm not up to scratch on these things
Title: Re: RSS bug
Post by: SparkieGeek on February 05, 2004, 05:25:01 PM
I've looked around, and found these which might be of use...

Latin-1 (http://home.ccil.org/~cowan/XML/XMLlat1.ent), Symbol (http://home.ccil.org/~cowan/XML/XMLsymbol.ent) and Special (http://home.ccil.org/~cowan/XML/XMLspecial.ent)