What I'm looking for would be a way to translate the Velocity template
before execution/rendering so that any conditional logic would be intact,
but in XSL/XSLT instead of Velocity.

It may not be possible to build a parser that does this, which was my first
reaction, but sometimes management insists...

Thank you for the input so far. Any other ideas?


On Mon, Jan 5, 2009 at 3:16 PM, Nathan Bubna <[email protected]> wrote:

> Like Robert, i'm a bit skeptical, but if you want to try and automate
> things, look into the RuntimeInstance class.  You can use the
> parse(...) method to load and parse a template and get a SimpleNode
> for the root of the AST.  You can then walk the tree however you like,
> i think.
>
> On Mon, Jan 5, 2009 at 12:47 PM, Mike McDonough
> <[email protected]> wrote:
> > Hi, I'm scoping out a project that requires converting a numbe of
> Velocity
> > HTML templates (50+) into XSL/XSLT/XML based templates. By conversion, I
> > mean the templates themselves, not the rendered output. The XSL type
> > templates would then be used going forward instead of Velocity.
> >
> > Are there any tools available or techniques that could be used to
> automate
> > this task? As I've never personally used Velocity, this may be out of
> left
> > field, but thought I would check to see what's available before I go down
> > the road of doing it completely by hand.
> >
> > Thanks for your help!
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to