Hugh Winkler holding forth on computing and the Web

Thursday, March 30, 2006

IE7 Transforms Atom to RSS 2

I put a little mileage on IE7 feeds today.

First this Wellstorm Atom feed. Of note: a) it validates on Feed validator; b) it uses an extension namespace; c) it specifies a CSS stylesheet.

I've pasted in the relevant files below.

Observations:

IE7 uses its own stylesheet, ignoring mine. That's ok I guess; it's a smart client, so it should be styling to suit its own purposes.

Before you subscribe, View Source: It displays the Atom xml content.

After you subscribe, View Source: IE7 has transformed the Atom to RSS 2.0.

Unfortunately, within IE7 you can never again view the original atom file! You can't enter the URL and View Source... it always shows it transformed to RSS. Weird.

Here is the Atom feed:


<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://www.hughw.net:8080/witsml/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:wixp="http://www.wixp.org/ns/atom">
<id>http://www.hughw.net:8080/witsml/atom/Default%20Repository/!well</id>

<title>WITSML Repository</title>

<updated>2006-03-17T14:01:14.935-06:00</updated>

<link rel="self" href="http://www.hughw.net:8080/witsml/atom/Default%20Repository/!well"/>

<entry>
<id>http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12</id>
<title>6507/7-A-42</title>
<link href="http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12.rby" rel="http://www.wixp.org/rel/contains"/>
<updated>2001-05-31T08:15:00.000000+00:00</updated>
<published>2001-04-30T08:15:00.000000+00:00</published>

<author><name>John Smith</name></author>
<wixp:ObjectType>well</wixp:ObjectType>
<wixp:LastModified>2006-03-17T14:01:14.935-06:00</wixp:LastModified>
<wixp:Name>6507/7-A-42</wixp:Name>
<wixp:uidWell>W-12</wixp:uidWell>
<wixp:nameSource>John Smith</wixp:nameSource>

<wixp:dTimStamp>2001-05-31T08:15:00.000000+00:00</wixp:dTimStamp>
<wixp:dTimCreation>2001-04-30T08:15:00.000000+00:00</wixp:dTimCreation>
<wixp:dTimLastChange>2001-05-31T08:15:00.000000+00:00</wixp:dTimLastChange>
<wixp:itemState>Plan</wixp:itemState>
<wixp:comments>These are the comments associated with the Well data object.</wixp:comments>
<summary type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><a href="http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12">well 6507/7-A-42</a> <a href="http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12.rby">[contents]</a></div></summary>

<content src="http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12" type="application/x.witsml+xml"/>
</entry>
</feed>

Here is the IE7 persisted version:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">
<channel>
<guid isPermaLink="false">http://www.hughw.net:8080/witsml/atom/Default%20Repository/!well</guid>
<title cf:type="text">WITSML Repository</title>
<pubDate>Fri, 17 Mar 2006 14:01:14 GMT</pubDate>
<atom:link href="http://www.hughw.net:8080/witsml/atom/Default%20Repository/!well"
rel="self"/>
<item>
<guid isPermaLink="false"
>http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12</guid>
<title xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="text"
>6507/7-A-42</title>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom"
href="http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12.rby"
rel="http://www.wixp.org/rel/contains"/>
<pubDate>Thu, 31 May 2001 08:15:00 GMT</pubDate>
<atom:published xmlns:atom="http://www.w3.org/2005/Atom">Mon, 30 Apr 2001 08:15:00 GMT</atom:published>
<author>John Smith</author>
<atom:author xmlns:atom="http://www.w3.org/2005/Atom">
<atom:name>John Smith</atom:name>
</atom:author>
<wixp:ObjectType xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">well</wixp:ObjectType>
<wixp:LastModified xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">2006-03-17T14:01:14.935-06:00</wixp:LastModified>
<wixp:Name xmlns="http://www.w3.org/2005/Atom" xmlns:wixp="http://www.wixp.org/ns/atom"
>6507/7-A-42</wixp:Name>
<wixp:uidWell xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">W-12</wixp:uidWell>
<wixp:nameSource xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">John Smith</wixp:nameSource>
<wixp:dTimStamp xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">2001-05-31T08:15:00.000000+00:00</wixp:dTimStamp>
<wixp:dTimCreation xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">2001-04-30T08:15:00.000000+00:00</wixp:dTimCreation>
<wixp:dTimLastChange xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">2001-05-31T08:15:00.000000+00:00</wixp:dTimLastChange>
<wixp:itemState xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">Plan</wixp:itemState>
<wixp:comments xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom">These are the comments associated with the
Well data object.</wixp:comments>
<description xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" cf:type="html"
><div><a href="http://www.hughw.net:8080/witsml/atom/Default
Repository/well.W-12">well 6507/7-A-42</a> <a
href="http://www.hughw.net:8080/witsml/atom/Default
Repository/well.W-12.rby">[contents]</a></div></description>
<content src="http://www.hughw.net:8080/witsml/atom/Default%20Repository/well.W-12"
type="application/x.witsml+xml" xmlns="http://www.w3.org/2005/Atom"
xmlns:wixp="http://www.wixp.org/ns/atom"/>
<cf:id>0</cf:id>
<cf:read>true</cf:read>
</item>
</channel>
</rss>

1 comment:

Jeff said...

I realize you can't answer this, but: WHY?!!?