W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2002

RE: XSLT - trim-whitespace function

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 6 Jun 2002 17:40:52 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679E80@daemsg02.software-ag.de>
To: Tim Stewart <tim.stewart@embarcadero.com>, "'xsl-editors@w3.org'" <xsl-editors@w3.org>

>    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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT