> Andy Clark Wrote:
> Actually, it's not. For example:
>
> <!ENTITY % one 'b'>
> <!ENTITY % two 'A%one;C'>
>
> The callbacks would be the following:
>
> internalEntityDecl("%one", "b");
> internalEntityDecl("%two", "AbC");
I tried with
<!ENTITY one 'b'>
<!ENTITY two 'A&one;C'>
and callbacks were
internalEntityDecl("two", "A&one;C");
I checked spec again and found that construction of internal entity replacement
text works differently for parsed Entity and general entity. According to spec
general entity referenced must be left as-is, unexpanded. I could not understand
rationale behind it, may be somebody will explain it to me.
Anyway, i feel passing non-normalized value with internalEntityDecl is fine.
I was wondering if removing Attribute information from XMLAttributes interface
is related with above. I feel they are independent.
> > > (?) Should Handler/Source/Filter Be in Same Package
> >
> > i would like to see them in different packages.
> > what about scanner interfaces ?
>
> The current separation is as follows:
>
> package org.apache.xerces.xni
> interface XMLDocumentHandler
> interface XMLDTDHandler
> interface XMLDTDContentModelHandler
> interface XMLDocumentFragmentHandler*
> package org.apache.xerces.xni.parser
> interface XMLDocumentSource
> interface XMLDocumentScanner
> interface XMLDTDSource
> interface XMLDTDContentModelSource
> interface XMLDTDScanner
>
> * There is no corresponding XMLDocumentFragmentSource
> for the XMLDocumentFragmentHandler interface.
>
> So we have scanner interfaces but they are grouped in the
> "parser" package. To me this sorta makes sense because
> they are related to the parsing pipeline and aren't
> strictly needed for communicating the streaming document
> information set. However, adding three additional
> interfaces seems to bloat the package more...
That's true. So what do u say, separate ?
lets see what others have to say about it !
regards
Neeraj Bajaj
---------------------
Sun Microsystems, inc.
Ph.91-80-2298989 x87425.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]