|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: converting 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








