RE: XSLT - trim-whitespace function

>    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

Received on Thursday, 6 June 2002 11:41:03 UTC