Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Sorting Entries in a Browser Viewable Atom Feed

by aplonis (Pilgrim)
on Feb 17, 2007 at 23:23 UTC ( [id://600648]=CUFP: print w/replies, xml ) Need Help??

Atom feeds are best viewed by feedreaders. But I wanted mine also viewable by browser. So for that I created an XSLT stylesheet. A problem ensued in that although the XSLT was powerful enough to sort entries without any problem...it turns out that there is practically no way to trigger anything XSLT-ish from a mouse event.

What to do? First I tried JavaScript but that was mostly a bust. Intense Googling revealed only one example of that which actually worked. But to me it looked overly complex and required browser sniffing (to which I am severly allergic).

Those efforts account for a solid week of utter futility. Admitting defeat, I fell back upon good, old, trusty Perl/CGI. By this route I had it working in no time at all.

Here is the Atom feed, as viewed in your browser, and resortable by clicking the button in the Table of Contents:

Atomic Starling

Here is the fully documented howto describing the process.

Creating an Atom Feed

  • Comment on Sorting Entries in a Browser Viewable Atom Feed

Replies are listed 'Best First'.
Re: Sorting Entries in a Browser Viewable Atom Feed
by pKai (Priest) on Feb 18, 2007 at 13:02 UTC

    Perl to the rescue?

    O. K., that's cool enough…

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://600648]
Approved by pKai
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-24 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found