This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: apostrophe in paramter causing output problems
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] apostrophe in paramter causing output problems
- From: "Uronis, Jeremy" <Jeremy dot Uronis at usa dot xerox dot com>
- Date: Wed, 15 Aug 2001 16:32:34 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
>From: Mike Brown [mailto:mike@skew.org]
>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