Re: [Sax-devel] Re: RFE #434478 (SAX2 and resolving system IDs)
Brought to you by:
dmegginson
From: David B. <da...@pa...> - 2001-11-08 22:38:00
|
> I would argue that ideally diagnostic messages should report the entity > location, not the base URI. True, in most cases they co-incide but possibly > not in all cases. For entity references being expanded, the relevant base URI is provided as argument 3 of the new resolveEntity() call. What a locator returns is always location of the construct that triggered the event ... such as an entity reference, or (the case you're interested in) the entity declaration. SAX certainly exposes all three distinct locations, which means that diagnostics can do what you want. It's just a simple matter of programming. All this does go to emphasize that handling of entity expansion remains one of the more problematic areas of the XML REC. It wasn't clearly described in the first version, and it's still got problems in the second edition. - Dave |