Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Generating Template and Data Structure

by artist (Parson)
on Dec 28, 2006 at 17:01 UTC ( #592081=perlquestion: print w/replies, xml ) Need Help??

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).



Replies are listed 'Best First'.
Re: Generating Template and Data Structure
by Corion (Patriarch) on Dec 28, 2006 at 17:04 UTC
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, ...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://592081]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-12-10 05:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found