xsl-list
[Top] [All Lists]

RE: [xsl] WordML Question and normalize-space() question

2006-05-19 09:27:48
 I'm wondering if it's possible to
normalize all the space without removing the leading and trailing 
whitespace?

<xsl:variable name="x" select="normalize-space(concat('!',.,'!'))"/>
<xsl:value-of select="substring($x,2,string-length($x)-2)"/>

I thought of that, but this normalizes the leading and trailing whitespace.

Perhaps that's what he wanted, who knows!

Michael Kay
http://www.saxonica.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>