We're using XSLT because we don't want our core code to have to output a bunch of different formats. With XSLT, we can output one format and allow XSLT to handle transformation of the XML to whatever output format is desired. Unfortunately, I've been using the tried and fuzzily true "hacker's learning methodology" of just using Google and books to apply a solution to a problem as it arises.
A couple of times this has led to me discovering that an applied solution was not the best solution -- just as novices learn with any language they stick with. So do I take the time to really learn XSLT or do I just finish up the task at hand and hope that I've learned enough to just Get Things Done? In other words, I face a recursive dilemma: I need to learn enough XSLT to determine if it's worthwhile to learn enough XSLT.
Re:XSLT for Dummies
Dom2 on 2005-09-02T06:28:58
I've looked at a few XSLT books around the office, but the one that worked best for me were the two reference chapters in XML in a Nutshell. They contain just enough information to find out what you actually need to know or perhaps guess what you're trying to do.-Dom
Re:XSLT for Dummies
htoug on 2005-09-05T06:47:06
I second that. My few hacks using XSLT were done with XML in a Nutshell before me.But I think that if I had to use it in anger then I would take a course, or find a tutorial at some conference - for me that is the best way of grogging the mindset of a new area. That is to have someone in the know explain it. and then read the books to get to know it. YMMV.
If you see yourself using XML to any extent, I recommend sticking with it. The language is actually very simple, it just has a very uncommon and less than obvious operational model that makes it kind of hard to approach.
I fumbled for a long time before the lightbulb lit up, but I can now say it’s really a fun language (save for the gymnastics due to being expressed in XML), and most everything I conceive of works correctly right away. So if twiddling trees sounds at all like fun, you will probably enjoy XSLT.
Re:Learning XSLT
iburrell on 2005-09-04T05:12:22
It is not too surprising that XSLT is like Scheme. It grew out of DSSSL, the SGML stylesheet language, which was based on Scheme. I have heard XSLT described as a functional language for manipulating trees.