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

Re: SAX2: Namespace Processing and NSUtils helper class

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: XMLDev list <xml-dev@i...>
  • Date: Wed, 15 Dec 1999 14:06:07 -0500

Re: SAX2: Namespace Processing and NSUtils helper class
At 01:06 PM 12/15/99 -0500, David Megginson wrote:
>> So I think it would be cleaner to deal with the fact that names can have
>> two parts, and not kludge them together with {} marks.  -Tim
>....
>We talked about this a few months ago, but I'd be happy to hear what
>people think now.

I'm afraid I think this is a hideous idea, and that's an understatement.
Even apart from code bloat - having to deal with two parts of a name means
twice as much code every place the name matters - I'm really not sure I
like the logic behind this approach.  

There are two cases where I think this approach could be useful. The first
is separating components from different namespaces for different
processing, which could be a good idea but isn't worth the cost so far as
I'm concerned. The second case is downright funny to me at least,
situations where you want to discard the namespace entirely and focus only
on the local part.  This latter approach might have been useful, indeed
necessary, if we'd been stuck with a 3-namespace XHTML, but we're not, at
least for today.

In just about every other situation, I think I'd rather work with a single
easily-kludged and un-kludged name that have to make two calls and kludge
them together myself.  While I think the two part approach might be
acceptable _if_ there's an option (heck, SAX2 supports that!) to choose
between them, I don't think two parts as the only approach in SAX2 itself
is even worth considering.



Simon St.Laurent
XML: A Primer, 2nd Ed.
Building XML Applications
Inside XML DTDs: Scientific and Technical
Sharing Bandwidth / Cookies
http://www.simonstl.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 unsubscribe, mailto:majordomo@i... the following message;
unsubscribe 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.