Skip to search.
rss-dev

Group Information

  • Members: 1330
  • Category: XML
  • Founded: Jul 27, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
CDATA v. Encoding   Message List  
Reply Message #2505 of 7450 |
Re: [RSS-DEV] CDATA v. Encoding

Rael Dornfest <rael@...> wrote in
news:4808B97E-78CC-11D6-85C9-000393089D30@...:

> My point exactly. Less work on the part of the producer to do
> any escaping; they can just drop their HTML into a CDATA and
> know that it'll all come out nicely in the end.

Well, I really hate the idea of embedding pseudo-markup in RSS
feeds. For *me* RSS stands for 'Really Simple Syndication'. It
should be simple, lightweight syndication format, which can be
viewed with all kinds of devices, from high-end desktop computers,
to mobile phones and on Web pages.

But now people are instead using CDATA sections, double escaping,
and all forms of oddities which really makes no sense in an XML
environment. To write a RSS viewer, you mustn't just support the
very simple markup format XML is, but instead implement a complete
HTML Web browser, with support for tagsoup markup, and implement
at least two parsers (one for XML, and one for the pseudo-markup).
And this means you can't write RSS feeds *about* Web development,
as som viewers will display &lt;em&gt; as emphasis text, even if
you were just *talking* about the 'em' element. It's really ugly.

XML *has* a well though-out mechanism for mixing various XML
markup languages. It's called namespaces. And it would work
perfectly for RSS. With it, an RSS viewer mostly only needs to
support a normal XML parser (which of there are tons freely
available). If it doesn't support any XHTML elements, it can just
treat them as unknown elements, and render the text in them.
This will work perfectly. And *if* it supports XHTML, or at
least a subset of XHTML, such as the text module,
<URL: http://www.w3.org/TR/xhtml-
modularization/abstract_modules.html#s_textmodule >
it can render these elements. (Even mobile phones or other simple
display device can render these, e.g. <em>foo</em> can be rendered
as *foo*.

--
Karl Ove Hufthammer



Thu Jun 6, 2002 10:11 am

huftis
Offline Offline
Send Email Send Email

Message #2505 of 7450 |
Expand Messages Author Sort by Date

Howdy, With all the encoding, double-encoding, and bad encoding issues floating about, I thought I'd throw the suggestion out for discussion of proposing that...
Rael Dornfest
hankfein Offline Send Email
Jun 5, 2002
8:44 pm

... Um, anyone using a real XML parser may not be able to distinguish between CDATA sections and things outside them. They both appear as just text. If people...
Aaron Swartz
aaronswartz Offline Send Email
Jun 5, 2002
8:56 pm

... Hash: SHA1 ... My feed also supports mod_content http://relativity.yi.org/rss/index.rss <snip/> Kevin - -- Kevin A. Burton ( burton@...,...
burton@...
kevinallenbu... Offline Send Email
Jun 5, 2002
11:41 pm

Aaron Swartz <aswartz@...> wrote in ... They *will* not be able to distinguish it, since there is no difference. CDATA sections are just a handy way...
Karl Ove Hufthammer
huftis Offline Send Email
Jun 5, 2002
9:31 pm

Howdy, ... My point exactly. Less work on the part of the producer to do any escaping; they can just drop their HTML into a CDATA and know that it'll all come...
Rael Dornfest
hankfein Offline Send Email
Jun 5, 2002
9:36 pm

... Having seen the tremendous numbers of feeds with charsets other than english I have to say this is indeed a naive idea. There are still considerable...
Bill Kearney
wkearney99 Offline Send Email
Jun 5, 2002
11:18 pm

... Hash: SHA1 ... The problem is that it doesn't solve all of them. About 80% of them certainly. The other problem is that all parsers don't support CDATA....
burton@...
kevinallenbu... Offline Send Email
Jun 5, 2002
11:39 pm

Rael Dornfest <rael@...> wrote in ... Well, I really hate the idea of embedding pseudo-markup in RSS feeds. For *me* RSS stands for 'Really Simple...
Karl Ove Hufthammer
huftis Offline Send Email
Jun 6, 2002
10:15 am

... Most of the time, the end-code-creator doesn't have control of this. If I were to use the XML::Parser in Perl (which is based on expat), then just the act...
Morbus Iff
morbus_iff Offline Send Email
Jun 6, 2002
11:55 am

Howdy, On Thursday, June 6, 2002, at 04:55 AM, Morbus Iff wrote: 90% of the RSS readers available do have a renderer of an HTML agent, so ... Mind you, I...
Rael Dornfest
hankfein Offline Send Email
Jun 6, 2002
5:06 pm

... Hash: SHA1 ... <snip/> For the record I couldn't agree more! I think the problem is that we haven't made it easy for people to do RSS 1.0 the *right* way....
burton@...
kevinallenbu... Offline Send Email
Jun 10, 2002
8:30 am

Morbus Iff <morbus@...> wrote in ... And that's great, since it's *correct* behaviour of the XML parser. Entities (whether pre-defined or user-defined)...
Karl Ove Hufthammer
huftis Offline Send Email
Jun 6, 2002
3:12 pm

... So you're saying, in essence, that once the XML parser has autoexpanded those tags, then the RSS viewer should go back in and de-expand those tags back to...
Morbus Iff
morbus_iff Offline Send Email
Jun 6, 2002
3:21 pm

Morbus Iff <morbus@...> wrote in ... More generally, I'm saying that if an application outputs text to a format where certain characters need escaping,...
Karl Ove Hufthammer
huftis Offline Send Email
Jun 6, 2002
4:04 pm

... Doesn't the use of the unencoded tags represent an XML problem? What if the tags overlapped other expected tag names? The larger hassle here is whether...
Bill Kearney
wkearney99 Offline Send Email
Jun 6, 2002
4:12 pm

Bill Kearney <wkearney99@...> wrote in ... Not at all. ... They won't. They're in different namespaces. That's the whole idea behind namespaces. You...
Karl Ove Hufthammer
huftis Offline Send Email
Jun 6, 2002
4:50 pm

... And that, not to be confrontational, seems like a bad policy to follow. I've been finding that, in /every/ case, the developers of a toolkit or authors ...
Bill Kearney
wkearney99 Offline Send Email
Jun 6, 2002
5:48 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help