xsl-list
[Top] [All Lists]

RE: 'fn:normalize-space', but with 0 or 1 heading/trailing space

2005-12-27 16:19:41
Michael Kay wrote:

Use concat() to add a non-space character (e.g. "#") fore
and aft, then apply normalize-space(), then strip off the
leading and trailing "#" using substring().

Or in XPath 2.0, just do replace($in, '\s+', ' ')

  As simple as I expected :-)

  Thanks,

--drkm




















        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>