xsltrenderer plugin

Patrick Wagstrom <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Taking Wari's advice after first hacking up the main code, I've managed
to create an XSLT renderer plugin for pyblosxom.  Here's a quick
summary of what it does:

for certain flavours (specified in configuration file) the templates
should produce XML instead of HTML.  This XML should have an XSLT sheet
associated with it to translate it into HTML.  For browsers that support
it, the XML is sent over the wire and the browser will do the
translation on the client side.  For browsers that don't support it, the
translation is done server side and the HTML is sent back to the client.

You can see it in action at http://patrick.wagstrom.net/weblog/
(provided that verizon doesn't do anything stupid with my dsl again).
Try viewing the page with both IE and Mozilla (or Firebird) and you'll
see how the page looks the same (or it should) but IE gets send the
whole HTML while Mozilla only gets the XML.

The package can be downloaded from:
http://patrick.wagstrom.net/projects/personal/pyblosxom/xsltrenderer-0.1.tar.gz
-or- http:///www.iit.edu/~wagspat/xsltrenderer-0.1.tar.gz

I would appreciate any feedback on this as I'm fairly new to pyblosxom.
I've also converted some of the other plugins to spit out XML to work
together with this.  I'll send a note about those when in another week
or so.

Thanks,

Patrick Wagstrom


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.