Andy Clark wrote:
> 
> Petr Kuzel wrote:
> > recent version of XNI contains many XMLDocumentHandler and XMLDTDHandler
> > methods with the same name and parameters except the Augmentations
> > parameter. Should not we add Augmentations parameter also to
> > XMLDTDHandler callbacks? (just curious)
> 
> I guess the reasoning is just that we didn't see a need to
> ever add arbitrary information to the DTD declarations and
> information. Do you have any use cases that require this
> change?

Yes, parameter entities. My scanner can then generate an additional info
without a need for private interface.

Once in history I even thought about a method augment(Augmentations)
that could be called prior particular handler callback if needed.
Later pipe components must propagate it in same manner. It is alternative
approach to the extra parameter. Unfortunately it may complicate logic.
 
> > With exception of XMLDTDHandler.characters() that could be renamed,
> > as somebody suggested, to ignoredText().
> 
> Yeah, this name has bothered me for quite some time. I'm in
> favor of changing the name if others agree.
> 
> > Again, why XMLAttributes.setValue() overwrites also non-normalized
> > value? (causes trouble)
> 
> Good point. This should change. Also, what do people think
> about adding the following method to XMLAttributes?
> 
>   public void setValues(String value, String nonNormalizedValue);


It is an interface so I would keep method count as low as possible.
-1

  Cc.

-- 
<address>
<a href="mailto:[EMAIL PROTECTED]";>Petr Kuzel</a> at Sun Microsystems
: <a href="http://xml.netbeans.org/";>XML module</a> and
: <a href="http://jini.netbeans.org/";>Jini</a> developer.</address>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to