[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ANN: SAX 2.0 extension proposals.

  • From: David Brownell <david-b@p...>
  • To: Miles Sabin <msabin@c...>
  • Date: Thu, 03 Feb 2000 20:40:19 -0800

sax extension requirements
Miles Sabin wrote:
> 

I've been getting mail dropped lately -- I found your direct
reply to me in the (old?) lists.ic.ac.uk archive.


> * A means of querying an XMLReader implementations features
>   without first having to instantiate an XMLReader.

I'm not sure I see a need for that.  So far there aren't so
many implementations (those in my package, how many others?)
and I think manual configuration of system or subsystem
defaults is likely to remain appropriate for a while.


> * A plug'n'play XMLReader factory which supports multiple
>   parsers and transparent adaptation of SAX 1 parsers.

More or less like the existing ParserFactory, except maybe
following Java conventions a bit better ("createXMLReader")
and throwing more appropriate exceptions?  Yes.


> * An extended ParserAdapter which exposes a SAX 1 parsers
>   support for validation.

That'd need a SAX1 extension ... ergo, SAX2?

Yes, Sun's proposed extension API does provide one solution here.
I don't much like it; depends on writing code, I'd rather have a
configuration file.

I'd like to see the SAX2 ("XMLReaderFactory") solution address
this issue.  Also the "show XML names" issue -- I'd rather have
that work "as delivered from the factory" rather than have to set
the feature directly to "true", or always to configure something
into the processing pipeline to stick some prefix back on.  (In
fact I'd as soon make that default different how SAX2beta has it.)


> * A couple of utility interfaces which bundle up the standard
>   SAX 2.0 feature and property identifiers.

Was there anything spoken against having some (standard) string member
for the new handler interfaces, like "SAX2_PROPERTY_ID" ??  That'd at
least handle those identifiers, though not the boolean features.

One of the more tedious tasks of updating my distribution to the
SAX2beta distribution was changing essentially every feature or
handler URI.  And removing as many of the now-deleted ones (like,
are all blocks of text buffered?) as I noticed.  So I'd be keen on
seeing the need for most such work go away.

In the case of handlers, the issue that David M. mentioned won't
exist -- new handlers get new class files anyway, so there's no
"single out-of-date file" type of version bug.


> Detailed descriptions and downloads can be found here,
> 
>   http://www3.mistral.co.uk/miles/

The bit about assembling configurations is something I'd defer until
there's more experience with requirements for such functionality.

- Dave

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.