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

Re: ModSAX (SAX 1.1) Proposal (fwd)

  • From: Dan Brickley <Daniel.Brickley@b...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Wed, 17 Feb 1999 16:24:30 +0000 (GMT)

daniel megginson



---------- Forwarded message ----------
Date: Wed, 17 Feb 1999 14:33:36 +0000 (GMT)
From: Dan Brickley <Daniel.Brickley@b...>
To: David Megginson <david@m...>
Cc: daniel.brickley@b...
Subject: Re: ModSAX (SAX 1.1) Proposal


David,

Here's a small proposal:
 
>     public abstract void setFeature (String featureID, boolean state)

becomes public abstract void setFeature (URI featureID, boolean state)

(or leave as String but with understanding that the datatype of
featureID is anything that's a legal Web URI)

So instead of "org.xml.sax.myfeature" we'd pass in tokens such as
"urn:sax-features:myfeature", "http://sax.org/features/myfeature",
"uuid:434234-2342342-23423423" or whatever. Anything that is a 
legal URI as per the URI RFC.

Whether these (ever) dereference to anything is a separate issue. I'm
assuming that you'll need a URI class for namespace handling anyway (or
does Java 2.0 have this alongside the Java class 'URL'?) so I don't
think I'm proposing bloat.

Justification:
	setFeature needs to be passed an identifying string that uniquely picks
	out some property. Rather than go with the pseudo-uri's in Java, it
	would be more in the spirit of XML and Web to use URIs. Using URIs is
	also more friendly towards non-Java implementations of the SAX API.

What do you think? It buys you management of the space of featureID
names, at cost of inevitable arguments about what you'll get if you
de-reference the URI. If not, what should be said about legal featureID
values?

Dan

On Mon, 15 Feb 1999, David Megginson wrote:

> Love it or hate it, here goes...
> 
> I propose that SAX 1.1 (aka ModSAX) add the following three core
> classes and interfaces to SAX 1.0 in the org.xml.sax package:
> 
> 
>   public interface ModParser extends Parser
>   {
>     public abstract void setFeature (String featureID, boolean state)
>       throws SAXNotSupportedException;
> 
>     public abstract void setHandler (String handlerID, ModHandler handler)
>       throws SAXNotSupportedException;
>   }
> 
> 
>   public interface ModHandler
>   {
>     // yup, it's empty...
>   }
> 
> 
>   public class SAXNotSupportedException extends SAXException
>   {
>     // yup, it's empty...
>   }
> 
> 
> I'm going to disappear now until Wednesday, so I'll let everyone chew
> on these for a while until I have time to offer explanations and
> arguments later this week.  
> 
> No, I haven't forgotten namespaces, or DTD information, or lexical
> information, or anything else.
> 
> 
> 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/ and on CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo@i... the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo@i... the following message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@i...)
> 
> 



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/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.