This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: text::trim()
- From: "Oleg Tkachenko" <olegt at multiconn dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 26 Dec 2001 21:38:55 +0200
- Subject: RE: [xsl] text::trim()
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Srinivasan Guruswami - CSIS Fellow
> Sent: Wednesday, December 26, 2001 8:56 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] 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