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

Re: SAX: two alternatives for namespaces

  • From: Chris Hubick <maillist@c...>
  • To: xml-dev@i...
  • Date: Tue, 28 Jul 1998 19:21:04 +0000 (GMT)

ignore namespace sax
On Tue, 28 Jul 1998, David Megginson wrote:

>   What changes to SAX 1.0 are required to support two-part names?
> 
> 2. New Interface
> 
>   Create a new SAX interface to represent a two-part name:

	I vote for something like this (2).

	I am in the camp that as much work should be done by the XML
processor as possible, rather than the application.  I think this is more
of a processor level feature rather than an add on.  As a user, I don't
mind another interface.  I like SAX's design, it is extremely simple to
use.  I think one of the things that makes SAX easy to use is that it
doesn't force me to use all the functionality, I can use DocumentHandler
without having a clue about DTDHandler, EntityResolver, etc.  So yet
another interface doesn't bother me.  And on that note...
	I strongly encourage adding a toString() to this Name interface,
and having it return the full name just as before.  As an application
writer this would allow me to easily get the old funtionality from the new
interface using a simple String cast, effectively allowing me to ignore
namespaces if I don't care about them.
	Naturally I think version 2 of SAX should try to have as minimal
an impact on version 1 features as possible. I think wherever possible it
should extend interfaces by adding methods rather than changing existing
ones.  On the other hand I think that although that makes sence for
providing support for something like comments, namespaces are to
integraded for this approach and I can't see a better way to do it in this
scenario.
	As far as my HXP parser goes, well, I plan on adding SAX 1 support
as soon as I can, and had planned on namespace support anyhow, so I 
welcome this simple addition.  Both of your proposals require the parser
writer to support Namespaces, and as for parsers that don't - fix them :-)

---
Chris Hubick
mailto:chris@h...
http://www.hubick.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/
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.