XSLT behind the scenes

Saturday 11 October 2003

I have the Encyclopedia Britannica Ready Reference pre-installed on my new home computer. I was poking around in its directories, and saw a number of familiar technologies: jython.jar, xalan.jar, and a number of XSL files. I’m not exactly surprised to see these things in pre-installed PC software, but it’s still unexpected, and pleasant to discover.

I am surprised to see this template in one of their XSLT files:

<xsl:template name="just_output_the_damn_fool_thing_geez_cmon_man">
    <xsl:attribute name="src">
      <xsl:value-of select="@src"/>

This clearly gets the award for Most Emphatically Named XSLT Template. Also, keeping in mind the points from Streamlined XSLT, it could be written thus:

<xsl:template name="just_output_the_damn_fool_thing_geez_cmon_man">
  <img src="{@src}"/>


Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
Comment text is Markdown.