Search the web
Sign In
New User? Sign Up
RSS2-Support
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

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
Summary of issue with xmlns attribute   Message List  
Reply | Forward Message #29 of 807 |
Re: [RSS2-Support] Re: Summary of issue with xmlns attribute

Marcus Campbell wrote:
> In my opinion, I think it's fair to assume that some parsers are going
> to break with the introduction of namespaces and that it's unavoidable
> or, at least, that it shouldn't be avoided.

Probably true, but since the number one design goal for the 0.9x/2.0 series
is backward compatibility, we should at least try to minimize the breakage.

> Parsers that can't handle namespaces should be the things that are
> modified to handle or ignore them, not the format / output itself.
> Removing the namespace from 2.0 makes much of the format's basis
> invalid, and hacks out pretty much all of what makes it 2.0 rather
> than 0.94 - what makes it better.

I'm nobody's namespace guru (and I was really hoping that people who were
would take care of this), but...

I see two problems: the effects on non-namespace aware parsers (including
regexes), and the effects on namespace aware parsers.

Just saying "RSS 2.0 supports namespaces, and the namespace declaration for
the core is http://backend.userland.com/rss2" says that

<foo:rss xmlns:foo="http://backend.userland.com/rss2">
<foo:channel>
...

is perfectly valid RSS 2.0, which will thoroughly break virtually everything
currently deployed. To break the rest, you only need to add

<foo:rss xmlns:foo="http://backend.userland.com/rss2">
<foo:channel>
<baz:title xmlns="http://example.com/baz">Not an RSS title</baz:title>
....

At that point you should have everything broken, since non-namespace aware
parsers believe that every single "title" element is an RSS title, and
namespace aware parsers (absent any that have been rewritten since 2.0
launched) are not looking for the element
{http://backend.userland.com/rss2}title, they are looking for {}title, an
element named title that is not in any namespace.

What to do? You can state in the spec that to be a compliant document, the
default namespace (the one with xmlns="something", with no prefix) MUST be
RSS. That would prevent people from mixing RSS in an existing document that
either had some other vocabulary that MUST be the default namespace, or that
had so many elements already in another default namespace that it would be a
pain to change. The only likely candidate I can think of would be XHTML,
though there certainly could be others. Doing that would allow existing
non-namespaced and regex apps to keep working, since <title> would always be
an RSS title, and the only way to refer to an RSS title.

Existing namespace aware apps would still break, since they're looking for
{}title, rather than {http://backend.userland.com/rss2}title. The only way I
can see to not break them is to say that the core does not have a namespace,
that {}title is in fact an RSS title, and that only things other than the
core MUST have namespaces. I assume that there must be some problem with
that, that I'm too inexperienced to grasp, but I don't know what it is. For
me, it's no more work to say "I found an RSS element, it doesn't have a
namespace declared, that means it's RSS" than it is to say "I found an RSS
element, the namespace is thus-and-such, is that the namespace that I know
as RSS?".

The spec would need a bit of explanation for why things are a touch funky,
embracing namespaces for everyone else's elements but refusing them for its
own, but after three years of explaining away <textinput>, I'd guess Dave's
pretty used to that.

Phil Ringnalda




Sat Sep 28, 2002 6:50 pm

philringnalda
Offline Offline
Send Email Send Email

Forward
Message #29 of 807 |
Expand Messages Author Sort by Date

Hey Danny, we're working on it. That's great. And I agree with your point. You're right, no one on RSS-DEV list was clamoring for RSS 2.0. They were happy with...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 28, 2002
6:10 pm

... Probably true, but since the number one design goal for the 0.9x/2.0 series is backward compatibility, we should at least try to minimize the breakage. ......
Phil Ringnalda
philringnalda
Offline Send Email
Sep 28, 2002
6:50 pm

... My head's starting to spin, but here's the reasons I could find why RSS 2.0 should require a default namespace: 1. If elements are left unqualified then...
Marcus Campbell
megadigiboy
Offline Send Email
Sep 29, 2002
10:35 am

Just *having* a well-formed and complete DTD would help. That's been missing from 0.9x since way back. Using a schema is another choice. But again that's ...
Bill Kearney
wkearney99
Offline Send Email
Sep 29, 2002
10:39 am

... Ah, right. I didn't realise - I just took it for granted that an XML language spec would have a DTD. ... Yes, and sometimes the spec is to blame. ... It...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 29, 2002
1:21 pm

Bill just a suggestion -- you blame me too much. It must be holding you back in some ways. Try to find ways where you think I'm in your way, to route around...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
11:08 am

No Dave, I will not do your work for you. You need to do the heavy lifting yourself. If you're going to claim you're writing specs then you need to DO the...
Bill Kearney
wkearney99
Offline Send Email
Sep 29, 2002
11:13 am

... Interesting analysis Marcus -- but I wonder if the breakage is really worth it. And I mean that quite literally. I wonder. One thing I don't wonder about,...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
11:18 am

... ...but the spec could remain correct and most of the breakages could be avoided - I believe - if the spec explicity made the requirements I went into in...
Marcus Campbell
megadigiboy
Offline Send Email
Sep 29, 2002
11:59 am

... It sounds like the best bet, and I believe it's correct by the W3 specs, but the only way of finding out would be to test it. Expecting parsers to ignore...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 29, 2002
1:21 pm

One thing I don't wonder about, the quality of the discussion yesterday was fantastic. I learned a tremendous amount from it. I think we identified the core...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 29, 2002
1:21 pm

... That's alright. There's more to this story that is obvious. ... spec ... Yes, the pseudo-2.0 spec is indeed to blame. Not XML, RSS-0.9, 0.91 or 1.0. ... ...
Bill Kearney
wkearney99
Offline Send Email
Sep 29, 2002
2:02 pm

... What I said was "[there are] quite a lot of fairly respectable tools around that can't use namespaces". Ok, so 'fairly respectable' might be open to ...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 29, 2002
2:52 pm

Marcus, if you have language to propose for the spec, that's great. Could you break it out into a separate message and say clearly what it is. BTW, another...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
3:14 pm

Bill I was asking for your help and praising you. I guess it doesn't surprise me that this hurt your feelings, but believe me it was not my intention. We have...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
3:15 pm

Hi Tim, thanks for getting in the loop. It's an interesting idea, but I don't think it will work. There are elements in 2.0 that are not in 0.92. [1] This is...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
3:31 pm

... That sounds like a very easy problem to solve. Resurrect the 0.94 spec. All RSS 0.91 feeds continue to work. All RSS 0.92 feeds continue to work. All RSS...
Sam Ruby
sa3ruby
Offline Send Email
Sep 29, 2002
5:26 pm

I thought of that of course, but it doesn't work -- because of the existence of 1.0. One possible back-off is for the RDF folk to change the name of their spec...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
5:32 pm

Otherwise everyone (understandably) thinks that 1.0 is better somehow than 0.9x. Can't have that. Why not? < rss99:whisper> at least the namespaces work </...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 29, 2002
5:43 pm

I don't think Sam is suggesting backing off current version numbers. I think he is suggesting two different version numbers for the newest Userland format. Use...
bloebrich
Offline Send Email
Sep 29, 2002
6:56 pm

... Uhhh perhaps that's an unforunate choice of words. Perhaps it should have been phrased as a question. In which case the answer would be, hello Danny, I've...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
5:49 pm

... Uhhh perhaps that's an unforunate choice of words. Perhaps it should have been phrased as a question. In which case the answer would be, hello Danny, I've...
Danny Ayers
Danny_Ayers
Offline Send Email
Sep 29, 2002
6:05 pm

Well, permit me to not agree. If person A tells me to fly to Hong Kong and person B tells me to take the train to Denver, I can't make them both happy. (But I...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
6:09 pm

... Just checking my history... RSS 0.92 came out after 1.0, right? And I'm not exactly sure when 0.93 came about, but there are 0.93 feeds out there and I...
Sam Ruby
sa3ruby
Offline Send Email
Sep 29, 2002
6:23 pm

Sam, the simple direct and respectful answer is that, imho, it didn't work before. Dave ... From: Sam Ruby To: RSS2-Support@yahoogroups.com Sent: Sunday,...
Dave Winer
dwiner
Offline Send Email
Sep 29, 2002
6:41 pm
 First  |  |  Next > Last 
Advanced

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