And relax ...
- Turned XSLTUnit into something useful
- Used XSLT to generate Java, XML and more XSLT
- Got a bit creative with Ant
- Incorporated a "foreign" language into a Java test suite
Without a great deal of effort or code, taken XSLTUnit from a proof of concept into something really rather useful.
But I've really been talking about tool building and tool use.
At the beginning, I talked about XSLT as programming language, that XSLT stylesheets are actually XSLT programs. Well, here we've used XSLT as a programming language. In the process we've got a bit meta- too, which is always fun. Code generators generally have a bad reputation - often deservedly so - but here, I think, it works well as we just crank the handle and compile the code. We don't need further editting, we don't round trip, just compile and run. It's a good tool to have.
Ant can do loads and loads of things. Most of my build scripts create a few directories, compile a few files, maybe copy a few, create a jar, maybe a tar.gz. But that's really at the entry level of project automation. There are about 80 core tasks (mostly aimed at Java compilation/Jar/War, basic file ops and CVS), and 60 optional tasks in the manual. Here we've used one slightly less common task - xslt - and it's taken us bloody miles. The better we get at this kind of thing we can do, the more the quality of our work improves, but the less we actually have to do to do it.