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

Re: Re: [Sax-devel] Showstopper issue with new Attribute text

  • To: David Megginson <dmeggin@a...>
  • Subject: Re: Re: [Sax-devel] Showstopper issue with new Attribute text
  • From: "Emmanuil Batsis (Manos)" <mbatsis@n...>
  • Date: Wed, 17 Mar 2004 16:56:56 +0200
  • Cc: XML Developers List <xml-dev@l...>,SAX Developers' List <sax-devel@l...>
  • In-reply-to: <405864E7.3090505@a...>
  • Organization: Netsmart S.A., Greece
  • References: <OF24BFF179.96E54E23-ON85256E54.0050C5B0-85256E54.0051D5E1@c...><p06010200bc7630593567@[192.168.254.4]> <405864E7.3090505@a...>
  • Reply-to: mbatsis@n...
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)Gecko/20040113

show stopper text

Ummmm, sorry if this sounds stupid but why do xmlns declarations have to 
be reported as attributes? Why do they have to be reported at all?

All I care as a developer is the namspace of element/attribute nodes and 
that information is available on startElement.

Giving me xmlns as an attribute will complicate my code.

On the other hand, maybe I need some sleep.

Cheers,

Manos



David Megginson wrote:

> Elliotte Rusty Harold wrote:
> 
>> The local name property of the attribute information item for an xmlns 
>> attribute is xmlns. The prefix property for the attribute information 
>> corresponding to an xmlns attribute has no value. Therefore, when SAX 
>> reports these I maintain that the local name should be xmlns, not the 
>> empty string. The qualified name should also be xmlns. This is still a 
>> showstopper issue, even allowing xmlns attributes into the 
>> http://www.w3.org/2000/xmlns/ namespace.
> 
> 
> OK, people, what do we do here?  Here are my opinions:
> 
> 1. Anyone who writes an application that actually cares about the 
> Namespace assigned to xmlns attributes is f#@$%@#$ed in the head and 
> deserves whatever happens.
> 
> 2. That said, we still have a responsibility to try to do the right 
> thing. If we get it wrong, though, it doesn't matter all that much (see 
> #1).
> 
> So, bearing all that in mind, what should we report for the following 
> Namespace declaration?
> 
>   <foo xmlns="http://www.example.org/ns#"/>
> 
> a) an attribute with no Namespace URI and the local name "xmlns";
> 
> b) an attribute with the Namespace URI "http://www.w3.org/2000/xmlns/" 
> and no local name; or
> 
> c) an attribute with the Namespace URI "http://www.w3.org/2000/xmlns/" 
> and the local name "xmlns".
> 
> Note that none of these is a clean solution, probably because Namespaces 
> 1.1 is a bit broken.  Then again, I doubt it matters much.  If no one 
> presents a convincing argument, I'll just pick one of the three at random.
> 
> 
> Apathetically yours,
> 
> 
> David
> 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
> 

-- 
Manos Batsis

     _  __    __                    __
    / |/ /__ / /____ __ _ ___ _____/ /_
   /    / -_) __(_-</  ' Y _ `/ __/ __/
  /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/


http://www.netsmart.gr
mailto:mbatsisSPAM_TRAP@n...
tel:+302103240940
http://forte.netsmart.gr/foaf/manos_foaf.rdf



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.