I played around with XSLT a little bit some years ago. I found it a painfully verbose language to program in: the extra markup associated with keeping XSLT "legal XML" made the program disappear into the language, so to speak: one twenty-character XML tag starting with "xslt:" looks much the same as another. What really irritated me was that so much of the markup was redundant; maybe purpose-built XSLT editors (or emacs or vim modes) would add that in automatically (someone's already suggested using TT to generate XML).

That's a pity, because XSLT looks like it might be a useful little side-effect-free language. For the moment, though, I'd say that if you desperately want your program to be data, for heaven's sake use Scheme. If I was being paid to produce XSLT code, I'd write a Scheme source filter.

--
Yours in pedantry,
F o x t r o t U n i f o r m


In reply to Re: Model-View-Controller: Template Toolkit vs. XSLT by FoxtrotUniform
in thread Model-View-Controller: Template Toolkit vs. XSLT by kvale

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.