xsl-list
[Top] [All Lists]

Re: [xsl] Problem finding set difference on string values

2008-01-01 04:04:57
Hi Mike,
   Both \r?\n and \s+ worked for me.

Thanks a lot for the help.

On Jan 1, 2008 4:22 PM, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
It might be that your input file contains CRLF rather than LF line endings.
The unparsed-text() function does not normalize line endings, and the regex
\n matches LF only. Use normalize-space() after tokenizing, or use \r?\n (or
perhaps even \s+) as the regex in tokenize().

Michael Kay
http://www.saxonica.com/


-- 
Regards,
Mukul Gandhi

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