xsl-list
[Top] [All Lists]

Re: [xsl] Stripping white space

2007-03-30 08:18:13


select="substring-after(normalize-space(.),',')"/>

what you want there is

select="normalize-space(substring-after(.),',')"/>


but easiest is not to tokenize on a , (which leaves dangling white
space) but to tokenize on a comma followed by optional white space
tokenize(.,',\s*')
then the token will never start with white space as any such space will
be taken into the token separator.

David

--~------------------------------------------------------------------
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>