Search the web
Sign In
New User? Sign Up
radio-dev
? 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.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
RFC: RSS 2.0 and writeRssFile callbacks   Message List  
Reply | Forward Message #7251 of 8443 |
RE: [radio-dev] RFC: RSS 2.0 and writeRssFile callbacks

Hi Dave,

It's my hope that we are talking about is really more similar than
different.

First off I should say that the implementation we have come up with does
not differ from the existing UL impl in terms of logic. It would be
hard for it to vary too much since I worked from the UL code, converting
stage-by-stage and I think we agree on the 3 callback points don't we?
(the 3rd callback is for the feed and is required to introduce any
xmlns: and optionally allow custom tags outside the channel).

Second I think there are very good reasons not to use string
concatenation. Code using tables is IMO a *lot* simpler to understand
since you are operating closer to the semantic level of the data than
you are when using strings, i.e. to add an attribute I make a new entry
in the table rather than finding the right spot in the string, splitting
it and concatenating the whole lot together. If you consider
querying/modifying existing attributes or PCDATA it becomes even more
compelling to use tables. Using strings effectively means "parsing" the
XML yourself. In ease-of-reading & maintenance terms I think the table
based code has all the advantages.

I would hesitate to suggest re-architecting this if it weren't so
important. If you are worried about dependent clients please take the
code and satisfy yourself that it produces semantically equivalent
results. As I mentioned in my email it passes both your own RSS
validator and the validator at archive.org. Radio groks it and I also
asked Don Park to feed it through Docuverse Daily. Dependents see valid
RSS and don't need to know how it was generated.

Lastly, I guess, I am offering you code which, unless I am mistaken,
already works in a real life implementation and, once vetted, could be
adopted as soon as you wanted.

Regards,

matt


-----Original Message-----
From: Dave Winer [mailto:dave@...]
Sent: 04 December 2002 12:27
To: radio-dev@yahoogroups.com
Subject: Re: [radio-dev] RFC: RSS 2.0 and writeRssFile callbacks


How about something much simpler that allows you to be called back to
add text at the item level and the channel level.

I'm reluctant to rearchitect the RSS serializer, so much depends on it.

Dave






Wed Dec 4, 2002 4:25 pm

mowerm
Offline Offline
Send Email Send Email

Forward
Message #7251 of 8443 |
Expand Messages Author Sort by Date

Hi folks I have been discussing with André Radke, Paolo Valdemarin, Marc Barrot, and Doug Baron the way Radio generates RSS and would now like to throw the...
Matt Mower
mowerm
Offline Send Email
Dec 4, 2002
8:46 am

How about something much simpler that allows you to be called back to add text at the item level and the channel level. I'm reluctant to rearchitect the RSS...
Dave Winer
dwiner
Offline Send Email
Dec 4, 2002
12:27 pm

... to add ... it. Of most significant concern would be the encoding of proper XML valid data with and WITHOUT resorting to use of HTML entities....
Richard Pick
rpeck64
Offline Send Email
Dec 4, 2002
1:48 pm

Hi Dave, It's my hope that we are talking about is really more similar than different. First off I should say that the implementation we have come up with does...
Matt Mower
mowerm
Offline Send Email
Dec 4, 2002
4:26 pm

... stream. Not true. A callback can do it's thing and return a scriptError. This will let the main routine think that nothing happened. Isn't there an RDF...
Richard Pick
rpeck64
Offline Send Email
Dec 4, 2002
1:47 pm

Hi Richard. Good comments, thank you. I've replied inline. ... I'm not sure I understand what you are saying. If the callback returns a script error and the...
Matt Mower
mowerm
Offline Send Email
Dec 4, 2002
4:40 pm

... returns ... Ah, you want to alter the main RSS stream that's exported. You can't with the existing routines. You can export your own. This way you can...
Richard Peck
rpeck64
Offline Send Email
Dec 4, 2002
11:31 pm

Hi Richard, ... If you open http://radio.weblogs.com/0107808/rss.xml you will see that the RSS is annotated at the <rss> and <item> levels in a way that I ...
Matt Mower
mowerm
Offline Send Email
Dec 4, 2002
4:50 pm

... with and WITHOUT resorting to use of HTML entities. Please explain what this means. My parser is throwing errors all over the place....
Dave Winer
dwiner
Offline Send Email
Dec 4, 2002
2:51 pm

... valid data ... over the ... Sure and it's not a complaint. Considering the mess that has been XML encoding in RSS (and not just in Radio) it's important...
Richard Peck
rpeck64
Offline Send Email
Dec 4, 2002
3:19 pm

I understand the concern, but not specifically in this context. Why not look at the encoding issues on a case by case basis. Clearly Matt and the others have...
Dave Winer
dwiner
Offline Send Email
Dec 4, 2002
3:45 pm

Matt here's a straight answer: 1. I don't want to rearchitect. 2. I don't want a replacement for UserLand's code. I had already been working on this a few...
Dave Winer
dwiner
Offline Send Email
Dec 4, 2002
10:27 pm

Dave, Alright let's move on. What you suggest will work even though I believe that my approach is the better one for the reasons I explained. Let's start...
Matt Mower
mowerm
Offline Send Email
Dec 5, 2002
11:32 am
Advanced

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