Are you going to be able to release this module (or another one based on XSLT?) I'm curious how the implementation was done.
The implemention of XSL was just of quick-and-dirty first try, it works, but I would first like to understand the core a little better (still have to read what a template engine does :) ... ). So I think it's for the moment to early to show me my example.
But if you want to know what I did, here it goes:
- I save all my xsl files in a java package, so that I don't have to explode my core war to place all the xsl's in there.
- In my module I just call my business logic that does whatever it needs to do, I return my business object and pass it on to my xstRender class, there the business object is being transformed in an xml object.
- I do a lookup of my xsl file using the classloader
- create my result using the xml object
- drop the result on the page.print() statement
That's it, it's a start but ...
I like to hear from other people how they would implement xslt in ther Nukes
Very similar to the way I handled Velocity. I'd like to compare notes on this sometime soon (specifically the module API and how to handle functions like openTable() from a templating engine such as XSLT).
Right now I'm burried in a PHP project that is supposed to be launched next week ....
Hopefully I can use Nukes instead of PHP for the next one.