Re: [xsl] regex and tab-delimited text

Subject: Re: [xsl] regex and tab-delimited text
From: Abel Braaksma <>
Date: Fri, 18 Jan 2008 10:46:23 +0100
David Carlisle wrote:
your regexp is looking for a \r (character 13) in the input, you have to
try pretty hard to get this character into an input document (the
character has to be quoted as a numeric character reference) all common
line ending conventions are normalised to a single character 10 which
you can match with \n.

with the notable exception of unparsed-text(), which does not normalize line endings at all.

(Which had me trapped sometimes when porting code that worked with input documents to code that worked with unparsed-text() retrieved documents...)

-- Abel Braaksma

Current Thread