[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: apostrophe in paramter causing output problems
>From: Mike Brown [mailto:mike@xxxxxxxx] >However you have a bigger problem in that you misunderstand how >translate() works. It works like the Unix 'tr' utility -- it only >replaces single characters. >You need a recursive template to do arbitrary string replacement. >See http://skew.org/xml/stylesheets/replace/ for one such example. >You'll do this: im not sure what you mean by this. when i set $Description to "This This This" and call <td> <input name="txtDescription" size="60" value='{translate($Description,"This","That")}'/> </td> i get an output of "That That That" jeremy 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
|