Re: setEntityResolver(null)

Miles Sabin <[email protected]> Wed, 2 Apr 2003 17:08:49 +0100
Newsgroups gmane.text.xml.sax.devel
Message-ID <[email protected]>
Karl Waclawek wrote,
> Miles Sabin wrote,
> > And we ought to say what the default policy actually
> > _is_. DefaultHandler defines a policy reasonably clearly, but that
> > doesn't tell us what the default behaviour is if setEntityResolver
> > is never invoked ... it's _probably_ the same as the behaviour of
> > DefaultHandler in almost all implementations, but there's nothing
> > in the spec that requires this.
>
> Yes, strictly speaking, the behaviour when resoveEntity returns Null
> is not defined to be the default behaviour, although I think it is
> meant to be.

I think this is the most important issue.

If the default policy is implementation defined as things stand, then 
the effect of specifying "a null arg resets the resolution policy to 
the default" on setEntityResolver amounts to saying "a null arg results 
in implementations defined behaviour". And I don't think that'll make 
anyone happy.

Cheers,


Miles


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel