This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: text::trim()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]