Page 1 of 1

Malformed entity references flagged on wrong line

Posted: Wed Jan 10, 2007 6:33 pm
by tbooth
Hi,

In the attached file, I get an error flagged on line 6 when the actual error is on line 9. This happens in both the standalone and Eclipse editors. Is this a known bug, or is it something peculiar to do with my setup? It seems pretty fundamental to me, and means I currently have to resort to the command line to find such errors in long XHTML files.

Any thoughts?

Cheers,

TIM

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyleft Tim Booth blah blah etc
-->
<foo>
<bar>This line is nice & well-formed.</bar>
<baz>
but
<this line="is naughtly & has an unescaped ampersand!" />
</baz>
</foo>

Posted: Wed Jan 10, 2007 7:00 pm
by george
Hi Tim,

Thanks for reporting this issue, it looks indeed like a problem introduced by the part that tries lo locate more precisely the error, it locates the previous entity assuming the error is related to that but in this case the entity in error is not reported.
We will fix this in short term.

Best Regards,
George

Posted: Thu Jan 11, 2007 1:47 pm
by george
Hi Tim,

The problem was fixed in the current development stream and it will be available in the 8.1 maintenance release, expected to be generally available this month. If you really need this fix we can make available for you an early access build but the workaround is easy, just search for the next ampersand to find the error location.

Best Regards,
George

Posted: Thu Jan 11, 2007 2:48 pm
by tbooth
Hi George,

Thanks for letting me know. I'll await the 8.1 release.

Cheers,

TIM