Saturday 11 October 2003 — This is more than 21 years old. Be careful.
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">
<img>
<xsl:attribute name="src">
<xsl:value-of select="@src"/>
</xsl:attribute>
</img>
</xsl:template>
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}"/>
</xsl:template>
Comments
Add a comment: