Updated: 2002-10-08; 3:41:58 p.m..
Python Community Server: Noteblog
Comments and opinions from the coder behind the Python Community Server. Techy types might want to check out the development blog for more software-related talk.

Check out CommunityServerWiki for discussion on PyCS and other community servers!
        

Wednesday, 24 April 2002

Dave: It may be time to decide how to display OPML docs in HTML browsers.

Why not just render them when they're generated?

Marc Barrot's renderCss macro will make a tree out of an outline with no trouble, and you could use the NetCrucible OPML stuff and make a version of Rogers' script that runs as part of the Radio upstreamer.  If Radio has built-in XSLT, you could do the transform there as well, rather than requiring the browser to do it.

When someone saves an OPML outline, the following should happen:

  1. The OPML file is saved
  2. The OPML file is rendered and saved as HTML
  3. Both the OPML and HTML files are uploaded to the server

Then when you want to link to an OPML file, you put two links on your page.  One goes to the raw XML, and one goes to the formatted HTML.

This way the processing only ever happens once - you don't get scaling problems as servers aren't required to do anything other than push out bytes.


12:17:14 PM    comment []

In response to Dave's note on OPML rendering, I guess I should mention that the HTML on www.myelin.co.nz is entirely generated from OPML and templates.

I'll be doing something with the rendering code, but not just yet.


10:58:43 AM    comment []


© Copyright 2002 Phillip Pearson.
 
April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May


Click here to visit the Radio UserLand website.

Subscribe to "Python Community Server: Noteblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.