SAX2: AttributeList2 and EntityRefList

David Megginson david at
Fri Mar 26 13:27:49 GMT 1999

John Cowan writes:
 > David Megginson scripsit:
 > > So, after some thought, here's what I came up with.  This is a special 
 > > interface providing indexes to zero or more entity references in a
 > > literal string (i.e. an attribute value).  The indices are based on
 > > whatever array indices the programming language is using, exclusive of 
 > > Unicode problems with combining characters, etc. (i.e. any
 > > normalisation must already have taken place).
 > What about references to unknown entities, though?  They don't contribute
 > any characters at all, and so don't fit your model.

Actually, they fit in fine -- the start and end positions will simply
be the same.

All the best,


David Megginson                 david at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list