Re: [xsl] error/confusion with translate function

Subject: Re: [xsl] error/confusion with translate function
From: Duane Gran <dgran@xxxxxxxxxxxxx>
Date: Fri, 11 Aug 2006 09:38:19 -0400
How embarrassing! And to think that I actually did recite the alphabet for both lists, but somehow overlooked this error. Thank you (and others) for setting me straight.

Duane

On Aug 11, 2006, at 9:00 AM, Nick Fitzsimons wrote:

Duane Gran wrote:
<xsl:variable name="thumbnail" select="translate($thumbnail- mixedcase, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqqrstuvwxyz')"/>
-------------------------------------------------^

You've got two lower-case "q"s, meaning Q will be converted to q, R will also be converted to q, and everything from there on in will be one letter back from what you expected.

Cheers,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/

Current Thread