From: Carsten K. <car...@ma...> - 2001-12-15 00:01:54
|
My opinion is that PhpWiki's RSS should follow these three XML 1.0 recommendations (but I haven't yet checked whether it actually does or not) . 1. RSS files are written in XML, so text/xml or application/xml should be used: RFC 3023: XML Media Types <ftp://ftp.isi.edu/in-notes/rfc3023.txt> >If an XML document -- that is, the unprocessed, source XML document > -- is readable by casual users, text/xml is preferable to > application/xml. MIME user agents (and web user agents) that do not > have explicit support for text/xml will treat it as text/plain, for > example, by displaying the XML MIME entity as plain text. > Application/xml is preferable when the XML MIME entity is unreadable > by casual users. Similarly, text/xml-external-parsed-entity is > preferable when an external parsed entity is readable by casual > users, but application/xml-external-parsed-entity is preferable when > a plain text display is inappropriate. 2. It appears some RSS implementations omit the XML declaration line. I believe many XML readers will interpret this as incorrect XML. XML Declaration: <http://www.w3.org/TR/REC-xml#dt-xmldecl> > XML documents should begin with an XML declaration which specifies > the version of XML being used; the document type declaration must > appear before the first element in the document. 3. The XML declaration line must indicate the character set in use when unicode or UTF-8 is NOT being used. For example here is a declaration for an XML document encoded with ISO-8859-1: <?xml version="1.0" encoding='ISO-8859-1"?> Carsten On Thursday, December 13, 2001, at 05:42 pm, Steve Wainstead wrote: > > I would think RSS files should come out as text/plain. > > ~swain > > On Wed, 12 Dec 2001, Aredridel wrote: > >>> >>> No, it's coming out as a gz file (my guess). I tried to look at it in >>> Lynx >>> and Lynx asked me if I wanted to download it (type oct/gz). >> >> Same for me. Galeon just displays it as if it were HTML. Any idea what >> the >> content-type should be? >> >> Ari >> |