[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 Megginson <david@m...>
  • To: xml-dev@i...
  • Date: 31 Jan 2000 18:04:46 -0500

Re: ANN: SAX 2.0 extension proposals.
Miles Sabin <msabin@c...> writes:

> There are, however, a few areas where I think a little bit more 
> needs to be done. I've put my code where my mouth is, and 
> written up and implemented a set of proposals for additions to 
> SAX 2.0beta. These proposals mostly cover things that have 
> already been discussed on this list,

Thank you again for the feedback.

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

That's not too hard: it would take only a few static methods.  There
are a couple of issues, though:

1. For a filter (which may be more common than a root reader), the
   features available depend on the features supported by the parent
   -- in other words, you cannot know what features are supported
   *until* the reader is instantiated.

2. You cannot enforce static methods with an interface, so they would
   have to be a matter of convention (like a no-argument constructor).

The second is minor, but the first may be much more serious.

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

Does this belong in the SAX core, or should it be a higher-level app?
I ask because I'm trying to keep the core sax2.jar as small as
possible, since it will usually be only a minor part of an app.

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

I don't know if this belongs in SAX1 per se, since there's no way to
know in the general case.  People writing adapters for specific SAX1
parsers (where validation is known) can extend ParserAdapter to add
that information.

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

Two issues here:

1. I'm trying to limit bloat.

2. I expect that the list of core feature and property identifiers
   will be able to grow *without* a new SAX release, so the class
   would become outdated.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions and unsubscriptions
are  now ***CLOSED*** in preparation for list transfer to OASIS.



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.