[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: error/confusion with translate function

Subject: Re: error/confusion with translate function
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 15 Aug 2006 10:02:07 -0400
Re:  error/confusion with translate function
At 11:13 AM 8/11/2006, it was written:
FWIW, a while back I came across an interesting variation on typing the alphabet for use in translate(): type the keyboard layout instead, thus:

translate($string, 'QWERTYUIOPASDFGHJKLZXCVBNM', 'qwertyuiopasdfghjklzxcvbnm')

It's much easier to type (for a non-touch-typist like me, anyway) and that, to my mind, makes it less susceptible to the kind of slip you made in your code.

translate($string, 'MR JOCK, TV QUIZ PHD, BAGS FEW LYNX', 'mr jock, tv quiz phd, bags few lynx')

Or if you prefer, you can use "BLOWZY NIGHT-FRUMPS VEX'D JACK Q" (with thanks to wordsmith.org for the pangrams).

Cheers,
Wendell

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.