artist has asked for the wisdom of the Perl Monks concerning the following question:

I have XML and XSL files that generates HTML file. I am looking for any aid, that can parse all these files and create Template(s) ( TT2 format) and Data Structure(s), that can go with the template(s) to produce resulting HTML. I believe that, this would be possible, if not easily. After I achieve that, I can convert XML to the required Data Structure(s) and any changes to HTML can be possible by tweaking Template(s).

Thanks

--Artist

Replies are listed 'Best First'.
Re: Generating Template and Data Structure
by Corion (Patriarch) on Dec 28, 2006 at 17:04 UTC
XSL 2 TT2
by ferreira (Chaplain) on Dec 28, 2006 at 17:59 UTC

    One of the easiest ways to transform XML into data structures is XML::Simple. (Though limited, I found it to be sufficient for most uses.) Transforming XSL into TT2 templates seems to be harder but possible with some diligency and motivation.

    Oh, Lazy Web, any conversor of XSL into TT2 templates out there? Wondering: how it would be named? XSL::Template, Template::Compiler::XSL, Template::Nice::XML, ...