Subject: Re: How can I translate a single letter into a letter inside an element?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 13 Feb 2003 23:33:42 -0800 (PST)
|
> That seems like it ought to be doable, but I'd need to replace
> individual characters with a string of characters. I've just checked
> out Jeni Tennison's template for "multiple string replacements" at
> http://www.dpawson.co.uk/xsl/sect2/StringReplace.html and it looks
> promising -- is that the way I should go? Or is there some simpler
> solution? I guess I'm hoping for something like the translate()
> function
The "str-map" template from FXSL does exactly this. For a recent
example do have a look at:
"Re: find capital letters in string and split it"
http://article.gmane.org/gmane.text.xml.xsl.general.mulberrytech/7083
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|