xsl-list
[Top] [All Lists]

Re: [xsl] error/confusion with translate function

2006-08-11 06:38:33
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--