[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] preserve-space and strip-space?
Subject: RE: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] preserve-space and strip-, David Carlisle | Thread | Re: [xsl] How do you get the non-tr, David Carlisle |
RE: [xsl] exclude-result-prefixes, Michael Kay | Date | RE: [xsl] Union of two node-sets no, Michael Kay |
Month |
Keywords