Re: Locator position
Petr Cimprich <[email protected]> Thu, 11 Nov 2004 15:16:55 +0100
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
David Megginson wrote: > >Originally, SAX was designed to work with existing XML parsers -- it >was only later that things turned around and people started designing >parsers to work with SAX. Reporting a position right after the markup >worked best with the existing XML parsers. > >Actually, I'm not sure I see the advantage of reporting a position >before or inside. Ideally, you'd have the whole range (start-end), >but if you cannot have that, one position is just as good as another >for reporting errors to the user. > > I have thought this is quite arbitrary, just hasn't been sure. The reason why I ask is that we are specifying the locator behavior for Perl SAX and we want neither introduce unnecessary differences from Java nor follow the Java API blindly. Thanks, Petr -- Petr Cimprich Ginger Alliance www.gingerall.com ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel