All, I am currently investigating the rewrite of a PHP app in Rails. One of the few reasonably well designed bits of the PHP app in question is its rendering layer, which transforms XML generated by the app into XHTML via XSLT. I am aware that few existing Rails apps make use of XSLT, but in the interests of not biting off more than I can chew I'd quite like to replace the PHP generating the XML while keeping the XSLT in place. I am confident that I know how to create a Rails app which generates XML instead of HTML. I'm not confident that I know how to best convert that XML into XSLT. I would very much appreciate guidance on how to approach this. I am aware of the RAA ruby-xslt project, but am not sure if this is the best place for me to start. Unfortunately the homepage http://www.rubyfr.net/ is currently down, which doesn't help, and I notice that others have experienced problems getting it to work: http://www.ruby-forum.com/topic/34085 Are there any other avenues that I should be exploring? Does anyone have an example of a Rails app which utilises XSLT that I could see? Thanks in advance for your help! paul.butcher->msgCount++ Snetterton, Castle Combe, Cadwell Park... Who says I have a one track mind?
on 2005-12-11 17:15
on 2005-12-11 17:28
It will be much easier to convert the whole application. Generating the XML with rails will be harder than generating HTML directly. I would use ERB templates instead of XSLT. ps. This is wrong: paul.butcher->msgCount++ It should be: paul.butcher.msg_count += 1 or paul.butcher.msg_count.next! ;-)
on 2005-12-11 23:56