One thought on “A Novice’s Intro to XSLT”

  1. You could indeed get rid of your xsl:choose and most of all of your ifs by using multiple templates and XSLT’s built-in tree-walker. You could think of the templates as call-backs that are used whenever the tree-walker is active and the “match” expression applies; the tree-walker is activated/calledusing xsl:apply-templates.

    XSLT indeed does not look attractive to people who come from a Unix/C/Java/JavaScript/awk/perl/etc curly-brace world. But it _does_ look attractive to a lot of people who need to do document processing, text processing, but who don’t (want to) think of themselves as programmers. And, of course, as you note, it makes processing XML pretty straightforward.

Comments are closed.