[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|