in reply to HTML::Template Question / Confusion

Ever thought of having your PERL-script spit out XML which then gets transformed into HTML or XHTML by XSLT?

I find it the cleanest way to separate logic and form.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

  • Comment on Re: HTML::Template Question / Confusion

Replies are listed 'Best First'.
(jeffa) 2Re: HTML::Template Question / Confusion
by jeffa (Bishop) on Jan 12, 2003 at 18:42 UTC
    Question? How well does XSLT handle complex logic? I myself have been dabbling in the arts of XML/XSLT transformation, and it just seems:
    1. too slow (i anticiapte faster processing the future however)
    2. possibly incapable of handling very complex decisions (for example, lot's of nested if-else conditions and loops)
    3. only good when you need to transform XML to more than just HTML
    I have done quite a bit with XSLT, but nothing that involved complex decision trees. I am curious as to which is really the "cleanest way." (and so far ... i still don't get why TemplateToolkit is as popular as it is.)

    jeffa

    "PERL" ne "Perl"

      I have used XML and XSLT to present some insurance statistics. A PERL-script collects the statistical data out of the database and sends it out as XML. It then gets transformed to HTML in nice tables and graphs, sums and ratios are calculated, ... all by XSLT. I now rarely have to change the PERL-scripts and can do most of the work through the XSLT-scripts.

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law