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

Re: SAX2: Interning names in namespaces

  • From: terje@i... (Terje Norderhaug)
  • To: xml-dev <xml-dev@x...>
  • Date: Mon, 7 Feb 2000 13:04:15 -0800

Re: SAX2: Interning names in namespaces
At 5:54 AM 2/7/00, james anderson wrote:
>David Megginson wrote:
>>
>> Stefan Haustein <stefan.haustein@t...> writes:
>>
>> > Ok, replace "complicated" by "unconvential". I do not like
>> > the idea off putting "hidden" meanings to string1 == string2.
>> > Normaly, someone unfamiliar with the concrete implemention
>> > would expect that both strings are java-interned.
>>
>> Agreed -- while the idea (as far as I understand it) is interesting,
>> I'm not comfortable with any serious obfuscation, no matter how
>> clever.  I've been coding for money long enough (13 years, believe it
>> or not) to have seen many examples of this kind of thing, and I cannot
>> remember a single one that did more good than harm in the long run.
>
>If clarity is the issue, then drop the strings and make the names first
>class objects and the behaviour will be documentable. Include a factory
>and the behaviour (for example raw-name-eq, q-name-eq, local-name-eq, or
>whatever), will be extendable and at the discretion of the end application.

I have demonstrated that by interning names in their namespaces, SAX
doesn't have to decide whether names are strings or first class objects.
SAX can allow parsers to use any representation they like for names, as
long as they maintain that equal names are identical if they are in the
same namespace.

I think SAX2 should add an interface for names similar to what is described
by James, but leave the actual representation to the implementation. SAX2
may leave a footnote that suggests (without requiring) a string
representation of names for backward compatability with SAX1 and easy of
use for those that don't understand the implications of namespaces.

-- Terje <terje@i...> | Media Design in*Progress

   Software for Mac Web Professionals at <http://www.in-progress.com>
   Take advantage of XML with Emile, the first XML editor for Mac!



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.