Subject: RE: preserve-space and strip-space?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 17 Sep 2001 14:34:43 +0100
|
> Maybe I am wrong on what strip-space and preserve-space are
> supposed to do.
> Using the following XML document, I pad each element's values
> with spaces.
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <links>
> <link> testing pre-stripping</link>
> <link>testing post-stripping </link>
> <link> testing any stripping </link>
> </links>
>
Yes, you are quite wrong. xsl:strip-space and xsl:preserve-space only affect
text nodes that consist entirely of white space.
If you want to remove leading and trailing spaces, consider the
normalize-space() function.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: How do you get the non-transformed character entity out of MSXML3.0, (continued)
- David Carlisle - Mon, 17 Sep 2001 04:54:50 -0400 (EDT)
- jdgarrett - Mon, 17 Sep 2001 07:38:47 -0400 (EDT)
- Kirk Allen Evans - Mon, 17 Sep 2001 08:39:40 -0400 (EDT)
- David Carlisle - Mon, 17 Sep 2001 09:21:08 -0400 (EDT)
- Michael Kay - Mon, 17 Sep 2001 09:40:25 -0400 (EDT) <=
- David Carlisle - Mon, 17 Sep 2001 09:05:58 -0400 (EDT)
- jdgarrett - Mon, 17 Sep 2001 13:34:13 -0400 (EDT)
- David Carlisle - Mon, 17 Sep 2001 15:35:48 -0400 (EDT)
- Mike Brown - Tue, 18 Sep 2001 02:01:08 -0400 (EDT)
|
|