Re: Locator2 is wrong

Elliotte Rusty Harold <[email protected]> Sun, 25 Apr 2004 13:13:04 -0400
Newsgroups gmane.text.xml.sax.devel
Message-ID <p06010211bcb1a17991c6@[192.168.254.88]>
At 12:07 PM -0400 4/25/04, Karl Waclawek wrote:

>The Locator interface provides entity related information, i.e. the
>external Id (systemId, publicId). Even the line and column numbers
>are specific to the 'current' entity. It makes sense to tie in other entity
>related information, like XML version and encoding.

That makes a little more sense, but still the interface is called 
Locator, not EntityInfo. The system ID, public ID, line and column 
number, are necessary to find the current location of the event. The 
encoding and version are not. Perhaps we could just rename Locator2 
EntityInfo? I could believe that an EnitytInfo is a Locator; but no. 
Line and column numbers are not part of the entity info.  They are 
different things. Hmm...
-- 

   Elliotte Rusty Harold
   [email protected]
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel