On 14 Jul 2008, at 07:46, Shawn Walker wrote:

> 2008/7/14 Chris Ridd <[EMAIL PROTECTED]>:
>>
>> On 14 Jul 2008, at 05:16, Shawn Walker wrote:
>>
>>> The following webrev includes proposed fixes for the following bugs:
>>>
>>> 1324 RSS / Atom feeds of repository updates
>>>
>>> webrev:
>>> http://cr.opensolaris.org/~swalker/pkg-1324/
>>>
>>> Change summary:
>>> * Added a bytes_to_str method to make it easy to get a human- 
>>> readable
>>> string representing a number of bytes in the largest IEEE Std
>>> 1212-1991 unit possible.
>>> * Changed face.py's page header output to include special alternate
>>> link so that live bookmarks work for RSS/Atom feeds in browsers that
>>> recognize it.
>>> * Changed server index page to include link to RSS/Atom feed.
>>> * Changed server index page to show last update to repository.
>>> * Added new feed module to generate RSS/Atom content.
>>
>> This all looks pretty good. Is there any value in putting the pkg
>> metadata in as separate XML elements, instead of just putting them in
>> a text blob? That way external tools could process the feeds in more
>> interesting ways.
>>
>> Either something like:
>>
>>       <pkg:maintainer>value of opensolaris.maintainer</ 
>> pkg:maintainer>
>>       <pkg:ISA>value of ISA</pkg.ISA>
>>
>> or to avoid mapping between package attributes and XML element names:
>>
>>       <pkg:attribute name="opensolaris.maintainer">value</ 
>> pkg:attribute>
>>       <pkg:attribute name="ISA">value</pkg:attribute>
>
> 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.

> The other problem is that most of the package metadata isn't available
> yet or we don't yet record the information.

Ah.

> The RSS/Atom format is strictly intended to be something human
> readable as far as I know.

There's plenty of tools that can process them, aggregate them, etc.  
Sorry to be a bit handwavy, I'm getting the kids ready for school...

> We can revisit having XML data streams for the purpose of parsing  
> later.

I agree, it can build on your change if required.

Cheers,

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

Reply via email to