xsl-list
[Top] [All Lists]

Re: Empty spaces turn to %20

2003-03-28 08:54:11

Use the translate() function:

<xsl:value-of select="translate(text(),'%20',' ')"/>


That will translate "%20" to " " which does meet the stated
specification,
but it will also translate % to space, and remove every 2 and every 0
from the input string, which probably isn't wanted.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>