Jeff Waugh wrote:
> <quote who="Chris Ball">
>
>> Blogger allows you to set tags (which it calls
labels), and even lets you
>> view a page of posts with just that label, but it
doesn't provide a feed
>> of that page. Would it makes sense to have
planetplanet parse this
>> category out of the main feed and prepare the
category-only feed itself?
>> Is there a better way to achieve category-only
blogger feeds?
>
> Here's an example of getting a label feed out of
blogger:
>
> http://beta.blogger.com/feeds/10861780/posts/fu
ll/-/Google%20Maps
>
> Reference:
>
> http://phydeaux3.blogspot.com/2006/09
/feeds-for-labels-in-beta-blogger.html
>
> To do category filtering, we'd have to add category to
the list of elements
> that filtering works on. In Planet 2.0, that's not
amazingly simple because
> it ignores them (because they're not a single value
such as "title"). Venus
> might be able to do it already, but if not, it will
most likely be a simple
> change to make.
Obviously, either Planet 2.0 or Venus can subscribe to a
category feed.
In Venus, the category information is retained, and can be
used to
create custom feeds. Atom feeds are created with XSLT
transformations,
and the atom.xml.xslt has examples of stripping certain
elements. This
can be generalized to stripping out entire entries. For
example, copy
atom.xml.xslt to australia.atom.xslt, and add the following
lines to the
latter:
<xsl:template match="
atom:entry[count(//atom:category[ term='austrailia']=0)]
"/>
What this does is match any entry which has zero category
elements with
a term attribute with a value of australia. Since this
template is
empty (ends with "/>"), anything that is
matched is replaced with nothing.
- Sam Ruby
--
devel mailing list
devel lists.planetplanet.org
http://lists.planetplanet.org/mailman/listinfo/devel
|