[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Mark,
The translate() function can be used to strip whitespace.
For example, translate('Hello World!', ' ', '') returns "HelloWorld!". Use translate($string, ' 
	', '') 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.
At 02:38 PM 9/22/2004, you wrote:
Re: [xsl] remove white space
Subject: Re: [xsl] remove white space From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 22 Sep 2004 15:52:10 -0400 |
Mark,
The translate() function can be used to strip whitespace.
For example, translate('Hello World!', ' ', '') returns "HelloWorld!". Use translate($string, ' 
	', '') 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
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================
--+------------------------------------------------------------------ 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@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] remove white space, Mark Williams | Thread | RE: [xsl] remove white space, Lincoln Mitchell |
Re: [xsl] remove white space, Josh Canfield | Date | Re: [xsl] flat xml to full tree wit, Anton Triest |
Month |