On Saturday 12 June 2004 08:04 am, Kate L Pugh wrote:
On Thu 10 Jun 2004, Chris Prather chris@prather.org wrote:
Darn you and your moving target. How am I ever supposed to write a CGI::Wiki::Kwiki clone in XSLT if you raise the bar like this?
I'm not sure whether to take this seriously or not :)
Well I'm only "half" serious. Look at http://orlando.pm.org ... it's got alot of bugs, and some of the features don't work ... but I did use CGI::Wiki::Kwiki as my reference implimentation. And I need to add in a copyright notice for alot of the code I liberated from CGI::Wiki::Kwiki so y'all keep your copyrights.
It makes calls to CGI::Wiki to get the Hash of the nodes, then takes that and passes it to XML::Generator::PerlData and LibXML::DOM::Generator ( i think) to turn it into an LibXML DOM which is then passed out to some LibXSLT stylesheets. And soon to be fed into the AxKit output stream. The whole shebang is organized by SAWA which is a web application toolkit (http://www.sf.net/projects/sawa).
It's all very slick, and I plan on supporting a transform for RDF, as well as transform to other XML Dialects in the future. Mostly it's a matter of replacing the TT display logic with XSLT, not very hard at all. Ultimately I would like to run the same treatment over OpenGuides.
If you'd like to inspect the code, lemme know. I haven't published it anywhere because it's not finished yet.
-Chris