Subject: RE: text::trim()
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Wed, 26 Dec 2001 21:38:55 +0200
|
Yeah, you probably speaks about normalize-space() function, see http://www.w3.org/TR/xpath#function-normalize-space
Function: string normalize-space(string?)
The normalize-space function returns the argument string with whitespace normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space. Whitespace characters are the same as those allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the string-value of the context node.
---
Oleg Tkachenko,
Multiconn International, Israel
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Srinivasan Guruswami - CSIS Fellow
> Sent: Wednesday, December 26, 2001 8:56 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: text::trim()
>
>
>
> Hello,
> Does anyone know if there is a function such as trim() that can be
> applied on a text node, i.e., remove all leading and trailing white-space
> ('\t', '\n', '\r', ' ', '\f'), given the text node can contain non
> white-space characters.
>
> Thanks,
> -Srini
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|