Subject: RE: apostrophe in paramter causing output problems
From: "Uronis, Jeremy" <Jeremy.Uronis@xxxxxxxxxxxxx>
Date: Wed, 15 Aug 2001 16:32:34 -0400
|
>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
| Current Thread |
- Re: apostrophe in paramter causing output problems, (continued)
- Mike Brown - Wed, 15 Aug 2001 15:00:25 -0400 (EDT)
- Uronis, Jeremy - Wed, 15 Aug 2001 15:38:57 -0400 (EDT)
- Uronis, Jeremy - Wed, 15 Aug 2001 15:55:45 -0400 (EDT)
- Mike Brown - Wed, 15 Aug 2001 20:15:44 -0400 (EDT)
- Uronis, Jeremy - Wed, 15 Aug 2001 16:42:28 -0400 (EDT) <=
- Sunil Dua - Wed, 15 Aug 2001 17:08:36 -0400 (EDT)
- Sunil Dua - Wed, 15 Aug 2001 17:13:32 -0400 (EDT)
- Mike Brown - Wed, 15 Aug 2001 20:12:50 -0400 (EDT)
- Uronis, Jeremy - Thu, 16 Aug 2001 10:09:11 -0400 (EDT)
|
|