On 14 Jul 2008, at 08:09, Chris Ridd wrote:

>
> On 14 Jul 2008, at 07:46, Shawn Walker wrote:
>
>> As far as I know, the RSS/Atom format doesn't work like that. See
>> section 6.3:
>> http://tools.ietf.org/html/rfc4287
>
> Not even using XML namespaces? I'm sure I've seen feeds containing
> Dublin Core metadata using that technique. I'll dig out some examples
> later if you can't find any.

All the feeds I've been looking through use RSS, darn it, but my  
reading of 6.3 of RFC 4287 is that "foreign markup" is explicitly  
permitted and processors are required not to break when they see it.  
This seems to be the opinion of the atomenabled folks too: 
<http://www.atomenabled.org/developers/syndication/#extensibility 
 >

Here's an example which the W3C's feed validator <http://validator.w3.org/feed/ 
 > considers valid.

---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom";
       xmlns:pkg="http://opensolaris.org/ips/atom";>

  <!-- non-pkg content taken from wikipedia's Atom example -->
  <title>Example Feed</title>
  <subtitle>A subtitle.</subtitle>
  <link href="http://example.org/feed/"; rel="self"/>
  <link href="http://example.org/"/>
  <updated>2003-12-13T18:30:02Z</updated>
  <author>
    <name>John Doe</name>
    <email>[EMAIL PROTECTED]</email>
  </author>
  <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>

  <entry>
    <title>Atom-Powered Robots Run Amok</title>
    <link href="http://example.org/2003/12/13/atom03"/>
    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
    <updated>2003-12-13T18:30:02Z</updated>
    <summary>Some text.</summary>
    <pkg:attribute name="opensolaris.maintainer">Jane Doe</ 
pkg:attribute>
    <pkg:attribute name="ISA">i386</pkg:attribute>
  </entry>

</feed>
---

Cheers,

Chris
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to