xsl-list
[Top] [All Lists]

Re: remove white space

2004-09-22 12:52:10
Mark,

The translate() function can be used to strip whitespace.

For example, translate('Hello World!', ' ', '') returns "HelloWorld!". Use translate($string, ' 
&#9', '') if you want to strip spaces, line feeds and tabs.

You should also look at normalize-space, which trims whitespace, although it won't be useful to you here.

Cheers,
Wendell

At 02:38 PM 9/22/2004, you wrote:
Hi,

Is there any easy xslt function for removing white space in an element other
than strip-space.  I have an element which contains urls, some of which have
white space in the middle of the url.  Strip-space won't help with this.

Thanks,

Mark Williams


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================



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