Redundant Specifications

So after my two posts on XSPF and some public discussion in the comments, I took the conversation with Lucas offline in hopes of getting a better understanding about the thought process that went into the spec. Unfortunately, Lucas has reacted as if I called his baby ugly and we got nowhere. Needless to say, I still believe that XSPF is completely redundant because it is nearly semantically identical to RSS.

To demonstrate, here’s a list of every playlist element from the XSPF version 1 spec and how it maps to channel elements from RSS version 2.

  • /playlist/title -> /rss/channel/title
  • /playlist/creator -> /rss/channel/managingEditor
  • /playlist/annotation -> /rss/channel/description
  • /playlist/info -> /rss/channel/link
  • /playlist/image -> /rss/channel/image
  • /playlist/date -> /rss/channel/pubDate
  • /playlist/license -> /rss/channel/copyright
  • /playlist/location -> create custom element
  • /playlist/identifier -> create custom element
  • /playlist/attribution -> create custom element
  • /playlist/link -> No need in RSS
  • /playlist/meta -> No need in RSS
  • /playlist/extension -> No need in RSS

That’s a pretty close match. There are a few things we need extensions for to represent in RSS, but nothing major. BTW, from what I can tell, the reason XSPF has link, meta and extension elements is for extensibility purposes. RSS supports an extremely flexible extensibility model already, so there’s no need for the XSPF specific extensibility elements.

Here’s the mapping of track elements in XSPF to item elements in RSS.

  • /playlist/trackList/track/location -> /rss/channel/item/enclosure
  • /playlist/trackList/track/identifier -> /rss/channel/item/guid
  • /playlist/trackList/track/title -> /rss/channel/item/title
  • /playlist/trackList/track/creator -> /rss/channel/item/author
  • /playlist/trackList/track/annotation -> /rss/channel/item/description
  • /playlist/trackList/track/info -> /rss/channel/item/link
  • /playlist/trackList/track/image -> create custom element
  • /playlist/trackList/track/album -> create custom element
  • /playlist/trackList/track/trackNum -> create custom element
  • /playlist/trackList/track/duration -> create custom element
  • /playlist/trackList/track/link -> No need in RSS
  • /playlist/trackList/track/meta -> No need in RSS
  • /playlist/trackList/track/extension -> No need in RSS

Again, pretty close match. As you can see, the majority of the XSPF elements have a direct equivalent on the RSS side. Certainly, the most important elements (playlist title, list of tracks, track location) have a direct equivalent. For the remaining XSPF elements that have no RSS equivalent, you could easily extend RSS to support those elements. In fact, you can easily encode the sample playlists from the XSPF spec in RSS without any extensions whatsoever:

<rss version="2.0">
  <channel>
    <title>My Playlist</title>
    <link>http://devhawk.net/playlists/myplaylist</link>
    <description>Here's my playlist</description>
    <item>
        <enclosure length="..." type="audio/mpeg" url="http://example.com/song_1.mp3"/>
    </item>
    <item>
        <enclosure length="..." type="audio/mpeg" url="http://example.com/song_2.mp3"/>
    </item>
    <item>
        <enclosure length="..." type="audio/mpeg" url=http://example.com/song_3.mp3/>
    </item>
  </channel>
</rss>

So you may be wondering why I’m taken so much time on this topic. Frankly, I don’t really care one way or the other about XPSF. As I wrote in my last post, I’m just trying to understand this space better. The reason this specific example interests me is because it is so obviously a duplication of effort with little discernable upside. And furthermore it’s being touted by Marc Canter who I know is all about open standards. Why is the XSPF open standard better than the RSS open standard? Or Atom for that matter? Atom’s creators explicitly describe Atom’s syndication format as “an XML-based Web content and metadata syndication format”. How is XSPF different from that, other than narrowing the scope down to multimedia content and metadata? What’s the value of the narrow scope specification when the wider scope specification is so widely adopted?

As you might guess, my opinion is that the narrow scope specification has no value. I assume that’s why Lucas responded so negatively. But the root issue doesn’t go away. XSPF and RSS both describe lists of stuff. XSPF is specific to lists of media while RSS is typically used for lists of weblog entries but can be used for lists of anything – including media. What’s a podcast feed but an RSS encoded playlist?

The problem is that by introduced yet another syntax for basically the same semantics, XSPF can’t take advantage of the existing tools and platforms around RSS. And I’m not just talking about the Windows Feed API, I’m talking about every implementation of RSS on every website and in every news reader or podcatcher around. Why wouldn’t you want to ride that wave?

Introducting DevHawk Designs

A while ago, I made a sign for my door that reads “Architecture Help 5¢” (in homage to Lucy’s psychiatry stand in Peanuts of course.) I get the occasional comment on it, so I decided to experiment and make a t-shirt out of it. These days, making your own t-shirt is cake with online services such as CafePress, T-Shirt Junky and Zazzle. I like Zazzle’s pricing structure the best – they have a flat fee and pay you a royalty on sales. CafePress has a baseline fee and you can then charge whatever you want on top of that. I didn’t want to be mucking around with pricing, so I went with Zazzle. Also, Zazzle has more choices and options for t-shirts than CafePress did.

My Zazzle gallery is named DevHawk Designs. So far, I have two products – the Architecture Help 5¢ shirt in black and in white, though Zazzle allows you to customize the shirt so you can get it on pink or navy blue if you really want it. I made it with Expression Graphic Designer, though it’s such a simple design I’m sure I didn’t really exercise its capabilities at all.

Other than me, I’m not sure who’s going to buy one of these. Believe me, I have no vision of being the next ThinkGeek. But let me know what you think, good or bad.