xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'Elliotte Harold'" <elharo AT metalab.unc.edu>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: RE: [XOM-interest] location of elements?
- Date: Mon, 30 May 2005 22:02:38 +0100
>
> Do any SAX parsers reliably report location information?
I rely entirely on the SAX parser to provide location information for
reporting errors in stylesheets and schemas, and schema validation errors in
source documents. The information is generally accurate but not very
precise. Typically on startElement it gives you the line and column number
of the end of the start tag. That's good enough for most purposes, the main
exception being those XSLT 2.0 stylesheets that contain 20-line XPath
expressions in an attribute value :-(
I've only had problems with the accuracy of the information when there are
encoding errors in the file, as these are generally discovered before lines
and columns can be identified in the byte stream.
Michael Kay
http://www.saxonica.com/
-
[XOM-interest] location of elements?,
Frankpeter Lohse, 05/30/2005
-
Re: [XOM-interest] location of elements?,
Elliotte Harold, 05/30/2005
- RE: [XOM-interest] location of elements?, Michael Kay, 05/30/2005
- <Possible follow-up(s)>
-
Re: [XOM-interest] location of elements?,
Elliotte Harold, 05/30/2005
- RE: [XOM-interest] location of elements?, Michael Kay, 05/30/2005
- Re: [XOM-interest] location of elements?, Frankpeter Lohse, 05/31/2005
-
Re: [XOM-interest] location of elements?,
Elliotte Harold, 05/30/2005
Archive powered by MHonArc 2.6.24.