Just checked out the latest CVS Xerces-J (hoping you've fixed a bug in the
DOM3 document-order test), and ran headlong into the changes in
startDocument,start/endPrefixMapping, and get/setDocumentSource in the
handler.

Suggestion: When APIs change, it'd be really nice if the Javadoc contained
comments about how to map the old versions to the new one. For now, I
suppose the best approach is to look at Elena's revalidation code again,
since presumably that's been updated appropriately... but it would have
been sorta nice to have a specific before-and-after illustration to follow
as a template. (If there was one and I missed it, my apologies!)

The advantage of events for PrefixMapping is that you're actively told
which prefixes are new at this element. On the other hand, if we assume
these will always be associated with event transitions, one can argue that
having a separate event for each of the prefixes is wasteful. On the other
other hand, will that hamstring us when we start trying to apply XNI to
document fragments, where we may want to assert namespaces from an implied
context?


______________________________________
Joe Kesselman  / IBM Research

Reply via email to