RE: XSLT - trim-whitespace function
"Kay, Michael" <[email protected]>
| Newsgroups | gmane.org.w3c.xsl-editors |
|---|---|
| Message-ID | <[email protected]> |
> I was wondering if the W3C had any plans to add a > whitespace trimming function to XSLT's function set. The > function would only trim leading and trailing whitespace. I > am using XSLT to generate source code where "internal" > whitespace can play a significant role. The function > normalize-space() would not work for me in this scenario. > We are working on regular expression capabilities which should satisfy this need, but there's a lot of detail to be sorted out and agreed before we get there. In XSLT 1.0 you can do it using a recursive template, but I agree it's not easy. Michael Kay