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

SAX2: Namespace support

  • From: David Megginson <david@m...>
  • To: "'xml-dev@x...'" <xml-dev@x...>
  • Date: Tue, 14 Mar 2000 20:56:20 -0500 (EST)

SAX2: Namespace support
Box, Don writes:

 > 2) NamespaceSupport needs to broken into an
 > interface/implementation pair (a la
 > Attributes/AttributesImpl). Ideally, I would like to be able to
 > swap in different implementations of NamespaceSupport for
 > performance reasons.

Wow.  I had thought of NamespaceSupport only as a convenience/helper
class for lazy SAX driver writers (most good programmers are lazy),
not as any kind of fundamental SAX interface.  Originally, I was going 
to bury it in ParserAdapter, but then I thought that others might find 
it useful as well.

I don't think I want to make this change, but I'm flattered that you
think so highly of what was really a four-hour hack.

 > Additionally, environments like C++ and COM don't lend themselves to having
 > classes shared across DLL boundaries,

Really?  I don't know about DLL's in particular, but I thought that a
C++ program was quite happy using classes from any library as long as
it could get at the header files somehow.  COM is a great mystery to
me, and will likely remain so.

 > 3) Minor nit. Wouldn't it be more convenient if the "rawName"
 > parameter/property were replaced with "prefix", especially since
 > doing so would create a nice correlation with the namespace
 > declaration events. Since the Name production of XML 1.0 doesn't
 > allow a Name to begin with a colon, there is no loss of
 > information, and it is simpler to catenate the two strings together
 > than it is to parse for the colon.

So you're suggesting not only a renaming but a change in the
information delivered.  I'm not sure that I see a big advantage either
way (someone's always going to suffer), so I'll probably leave things
in the most convenient form for non-Namespace users, who don't care
about the Namespace URI or local name.

I do think that rawName should be renamed, though.  What does DOM
level 2 use, again?


All the best,


David

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

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.