[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: Getting info of runtime failure in saxon environment


Subject: Re: [xsl] Re: Getting info of runtime failure in saxon environment
From: John English <john.foreign@xxxxxxxxx>
Date: Wed, 27 Feb 2013 17:56:49 +0200

On 27/02/2013 12:41, Michael Kay wrote:
Note that the reason some parsers fail to provide location information for an
encoding error is that in a properly layered architecture you need to do
decoding before you start recognizing line endings, which means that the
information about line numbers is typically not available at the point where the
decoding error is detected.

I'm not sure I understand this. It seems from what you're saying that, for example, a compiler should also be unable to give line number information for errors (unless it's not "properly layered"). Shouldn't the tokeniser keep track of where each token comes from in the source file and be able to tell you this if asked?
--
John English



Current Thread