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

RE: converting speacial characters ?

Subject: RE: converting speacial characters ?
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Thu, 14 Sep 2000 18:39:18 +0100
speacial characters
Jukka wrote:
>> > >Look into the XPath translste() function. It's covered in:
>> > >    http://www.w3.org/TR/xpath#section-String-Functions
>> > >
>> >but it only works on single characters
>
>It works as far there are as many source characters as in converted
>character string. 
>
>e.g:
>
>like -> luck

And only in this case if there are no repeated letters in your string, for
example:

  translate("I like lakes", "like", "luck")

would give:

  "I luck lacks"

All 'l's are turned to 'l's, all 'i's to 'u's, all 'k's to 'c's and all
'e's to 'k's.

The translate() function is simply not designed to work on replacing whole
words, only individual characters with other characters.

Cheers,

Jeni

Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.