Re: ues-attributes2/entity-resolver2/locator2 read-only?

"Karl Waclawek" <[email protected]> Sun, 11 Apr 2004 21:48:20 -0400
Newsgroups gmane.text.xml.sax.devel
Message-ID <001f01c42030$3cd5a550$0500a8c0@karlglen188>
----- Original Message ----- 
From: "Michael Glavassevich" <[email protected]>
To: <[email protected]>
Cc: "Karl Waclawek" <[email protected]>; "Elliotte Rusty Harold" <[email protected]>
Sent: Sunday, April 11, 2004 3:33 PM


> Elliotte Rusty Harold <[email protected]> wrote on 04/09/2004 
> 08:48:03 AM:
> 
> > Perhaps this should be an option for parsers that wish to allow this 
> > to be set. However, some parsers may not wish to make this an option 
> > and prefer to make it a read-only property instead.
> 
> Based on the current javadoc for EntityResolver2, I believe this already 
> is an option. It states: "If a SAX application requires the customized 
> handling which this interface defines for external entities, it must 
> ensure that it uses an XMLReader with the 
> http://xml.org/sax/features/use-entity-resolver2 feature flag set to true 
> (which is its default value when the feature is recognized). If that flag 
> is unrecognized, or its value is false, or the resolver does not implement 
> this interface, then only the EntityResolver method will be used." That 
> sounds like read-write to me. A parser which recognizes the feature but 
> doesn't support setting it to false should throw a 
> SAXNotSupportedException.

If read/write was really the intended message, why did it not just say:
 "must ensure that it sets the ... feature flag to true" instead of making
the value dependent on the XMLReader instance with:
"must ensure that it uses an XMLReader with the ... feature flag set to true".
If one can make an argument for read/write, one can make one for read-only as well.

But the main issue is: what would read/write buy you?
If you don't want EntityResolver2 methods called, then
don't pass such a handler.
 
Karl


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel