[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [syndication] referencing a DTD



In article <4.3.1.0.20011114100239.019f2810@127.0.0.1>, Rod Davies
<rdavies@orientpacific.com> writes
>As many would know, when Netscape reorganized their site 12 months back, 
>they mistakenly deleted their RSS DTD, meaning many publishers with RSS 
>feeds referencing this suddenly and without warning had problems. Netscape 
>restored it very smartly after complaints, and stated that it was a mistake.
>
>My question is, seeing Netscape does not have as much interest in RSS as 
>previously is there another DTD we could use, which would be more 
>permanent? Could anybody suggest some?
>
>We are not programmers or developers, just publishers, which might be very 
>evident! We use 0.91

Arguably, you don't need a DTD and many feeds don't reference one. The
only piece you might need is a reference to an entity encoding list.
Even this can avoided by double encoding all entities (eg < becomes
&amp;lt;).

A typical entity encoding for RSS 0.9x might look like this at the top
of the RSS file.
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for
XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent";>
%HTMLlat1;]>
 
This references a file at the http://www.w3.org which is less likely to
disappear than the netscape one.

As another alternative, you can take a copy of the netscape file and
host it yourself. 

But I'm no XML expert. Perhaps somebody could comment from the point of
view of producing "good" XML.

-- 
Julian Bond    email: julian_bond@voidstar.com
CV/Resume:         http://www.voidstar.com/cv/
WebLog:               http://www.voidstar.com/
M: +44 (0)77 5907 2173  T: +44 (0)192 0412 433
ICQ:33679568 tag:So many words, so little time