Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Two things I think people always forget when considering XSLT are that to do XSLT well you need to know XPath and that sometimes you need to extend XSLT with your own custom functions to make life easier.

As to your novice programmers. Well if they already know Perl then picking up TT should be a snap. If they are manipulating XML then they will have to learn XML/XSLT/XPath anyway. However, I find XSLT very frustrating as outputting plain text or maintaining correct formatting in a document can be hard. Add in complex XPath and then I find myself reaching for TT or for HTML::Template.

At work, I tend to use XSLT purely in XSL-FO and create the underlying XML via TT. I rarely use XSLT out of the box unless my underlying data is in XML to begin with. So you know, XSL-FO can be used to create RTF and PDF documents (to name a few).

Of course, language neutrality is a boon for XML but there is nothing stopping you exposing whatever service you provide as a webservice or adding an additional output switch (for the command line as an example) for added interoperability.

My own personal take is that it depends. It depends on whether you are going to be processing XML most of the time, you have data in XML format or you need to interoperate between systems/applications. If your programs aren't going to do this then there probably isn't a need for XML at that time.

If you do decide to use XML/XSLT then you will need a good and fast library. For that I would recommend the LibXML and LibXSLT libraries from the Gnome project.

HTH

In reply to Re: Model-View-Controller: Template Toolkit vs. XSLT by simon.proctor
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found